Skip to content

Instantly share code, notes, and snippets.

@pshinghal
Created September 29, 2015 05:54
Show Gist options
  • Save pshinghal/c0c2fda737611cb2a1a1 to your computer and use it in GitHub Desktop.
Save pshinghal/c0c2fda737611cb2a1a1 to your computer and use it in GitHub Desktop.
alias glp="git log --color -p | less -R"
alias glg="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | less -R"
alias hlog='git log --date-order --all --graph --format="%C(green)%h %Creset%C(yellow)%an%Creset %C(blue bold)%ar%Creset %C(red bold)%d%Creset %s"'
alias cdg="cd \$(git rev-parse --show-toplevel)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment