Last active
November 6, 2020 15:30
-
-
Save eon01/ba9c5bb4cd6f2001d3a0f764ae2b2d92 to your computer and use it in GitHub Desktop.
A friendly way to show your Git history
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The basic command is: | |
git log | |
For a better and less verbose output use: | |
git log --pretty=oneline | |
To show only a partial prefix (instead of showing the full commit), use: | |
git log --pretty=oneline --abbrev-commit | |
To show a nice ASCII-art graph of your logs: | |
git log --pretty=oneline --abbrev-commit --graph --decorate --all | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment