Middle
How to view commit history in a short form?
sobes.tech AI
Answer from AI
To view the commit history in a brief form in Git, the command used is:
git log --oneline
It displays each commit in one line, showing the shortened hash and commit message. This is convenient for a quick overview of the history without unnecessary details.
You can also add a limit on the number of commits, for example:
git log --oneline -n 5
to see the last 5 commits.