Skip to content

Instantly share code, notes, and snippets.

@eon01
Last active November 6, 2020 15:30
Show Gist options
  • Save eon01/ba9c5bb4cd6f2001d3a0f764ae2b2d92 to your computer and use it in GitHub Desktop.
Save eon01/ba9c5bb4cd6f2001d3a0f764ae2b2d92 to your computer and use it in GitHub Desktop.
A friendly way to show your Git history
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