Skip to content

Instantly share code, notes, and snippets.

@draptik
Created May 22, 2015 09:35
Show Gist options
  • Save draptik/614fe988c929525b25d5 to your computer and use it in GitHub Desktop.
Save draptik/614fe988c929525b25d5 to your computer and use it in GitHub Desktop.
Git alias settings in gitconfig
alias.ec=config --global -e
alias.up=pull --rebase
alias.co=checkout
alias.cob=checkout -b
alias.ls=log --pretty=format:'%C(yellow)%h%Creset%C(bold red)%d %Creset%s%Cgreen [%cn] %C(bold green)(%cr)%Creset' --decorate
alias.ll=log --graph --pretty=format:'%Cred%h%Creset -%C(bold yellow)%d%Creset %s %Cgreen(%cr) %C(dim green)<%an>%Creset' --abbrev-commit --
date=relative
alias.f=!git ls-files | grep -i
alias.grep=grep -Ii
alias.m=merge
alias.com=checkout master
alias.rb=!git rebase master "$(git rev-parse --abbrev-ref HEAD)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment