Skip to content

Instantly share code, notes, and snippets.

@kcjpop
Last active December 2, 2016 11:49
Show Gist options
  • Save kcjpop/9267576 to your computer and use it in GitHub Desktop.
Save kcjpop/9267576 to your computer and use it in GitHub Desktop.
My git aliases
git config --global alias.lg "log --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.dc 'diff --color'
git config --global alias.dca 'diff --color --cached'
git config --global alias.pr 'pull --rebase'
git config --global alias.st 'status'
git config --global alias.aa 'add . -A'
git config --global alias.ca 'commit --amend'
git config --global alias.cm 'commit'
# Remove excess branches
git remote prune origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment