Skip to content

Instantly share code, notes, and snippets.

@narainsagar
Forked from pshinghal/git shortcuts
Created September 29, 2015 05:58
Show Gist options
  • Save narainsagar/bf14f26e6fc3d7cc8c11 to your computer and use it in GitHub Desktop.
Save narainsagar/bf14f26e6fc3d7cc8c11 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