Skip to content

Instantly share code, notes, and snippets.

@zorbash
Created April 2, 2013 11:37
Show Gist options
  • Save zorbash/5291594 to your computer and use it in GitHub Desktop.
Save zorbash/5291594 to your computer and use it in GitHub Desktop.
some useful aliases for git
alias.st status
alias.ci commit
alias.co checkout
alias.di diff
alias.br branch
alias.mod ls-files -m
alias.tip log -1
alias.ds diff --cached
alias.sm submodule
alias.line log --oneline
alias.hard reset --hard
alias.ls ls-files
alias.pop stash pop
alias.lg log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment