How to show commit messages in a condensed form?

git log --oneline

To show commit messages in a condensed form use git log --oneline, which shows one commit message per line, with a shortened 7 byte SHA.

Layer 1
Terminal Example
git log --oneline
1037834 (HEAD -> main) minimize asset size
52e5014 Add assets
9ddda0b Add ruby code
1336ca2 Updated README
16f0fe7 Adding image.png and README.md
9cfff18 Adding file.txt

See git log to learn more about it.

Last modified on November 30, 2021.

You might also like