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?

  1. A. The exact byte-for-byte diff of every commit
  2. B. The total disk size used by the .git directory
  3. C. A compact, visual ASCII graph of how all branches' commit histories diverge and merge relative to one another
  4. 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.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic