CS FundamentalsHardGATE CS · TCS NQT Prime · Product Company SDE
What does `git log --graph --oneline --all` help a developer see that a plain `git log` does not as clearly?
- A. The exact byte-for-byte diff of every commit
- B. The total disk size used by the .git directory
- C. A compact, visual ASCII graph of how all branches' commit histories diverge and merge relative to one another
- D. A list of files that have never been committed
Correct answer: C. A compact, visual ASCII graph of how all branches' commit histories diverge and merge relative to one another
The --graph flag draws branch and merge topology as ASCII art, --oneline compresses each commit to a single line, and --all includes every branch/ref, together giving a readable overview of how branches relate.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- Why are automated tests considered essential to a healthy CI/CD pipeline, rather than optional?
- A function has 2 independent input variables, each with its own valid range. Using standard (non-robust) BVA, varying one variable at a…
- A requirement states 'the system shall be user-friendly.' What is the main problem with this requirement as written?
- What does git cherry-pick <commit> do?
- A PERT activity has optimistic time 5 days and pessimistic time 15 days. What is its standard deviation, SD = (P − O) / 6?
- Two components with availability 99.5% and 90.0% are connected in series (the system works only if both are up). What is the system's…