Skip to content

Instantly share code, notes, and snippets.

@tonkatsu7
Last active May 25, 2021 23:00
Show Gist options
  • Save tonkatsu7/5f2df8bb4755018305eef7c00086114d to your computer and use it in GitHub Desktop.
Save tonkatsu7/5f2df8bb4755018305eef7c00086114d to your computer and use it in GitHub Desktop.
Visualising git branches on the command line
git log --graph --decorate --oneline
git log --all --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
git config --global alias.lg "log --all --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment