Git · Junior · Question 36 of 75

Which command shows a compact one-line history?

Explanation

--oneline prints a short hash and the subject. Add --graph --all to see how branches diverge and merge.

Further reading

Problem with a question

Git · Junior · question 36

Test yourself

Take the Git · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz