Skip to content

Instantly share code, notes, and snippets.

@tueda
Created May 31, 2017 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tueda/d411b7ddc4167c5bb209040b637d5e2d to your computer and use it in GitHub Desktop.
Save tueda/d411b7ddc4167c5bb209040b637d5e2d to your computer and use it in GitHub Desktop.
Show pretty branch graphs. #bin #sh #git
#!/bin/sh
#
# Show pretty branch graphs.
#
# Usage:
# git graph [<log options>]
#
git log --graph --date=short --format='%C(yellow)%h%C(reset) %C(magenta)[%ad]%C(reset) %s %C(cyan)@%an%C(reset)%C(auto)%d%C(reset) ' "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment