What is the command to show a summary of the commit history?
Posted by CarolTh
Last Updated: July 07, 2024
To show a summary of the commit history in Git, you can use the following command:
git log --oneline
This command displays a concise, one-line summary of each commit in the repository, showing the commit hash and the commit message. If you want to see a more detailed summary along with other information, you can use:
git log --pretty=short
or for a more visually appealing graph representation, you can use:
git log --graph --oneline --decorate
This will show a graph of commits along with their hashes, messages, and branches/tags.