Skip to content

Instantly share code, notes, and snippets.

@kalimar
Created September 29, 2016 13:38
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 kalimar/f9c4b7997690881681f1ac2eed6ed113 to your computer and use it in GitHub Desktop.
Save kalimar/f9c4b7997690881681f1ac2eed6ed113 to your computer and use it in GitHub Desktop.
My favorite git commands
alias glg='git log --color --graph --pretty=format:"%h %C(yellow)%d%Creset %ar%n%C(cyan)%s%Creset %an%n"'
alias gl='git log --topo-order --pretty=format:"${_git_log_medium_format}"'
alias gia='git add'
alias gmC='git merge --no-commit'
alias "gh"="git for-each-ref --count=30 --sort=-committerdate refs/heads/ --format='%(refname:short)' | more"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment