Skip to content

Instantly share code, notes, and snippets.

@keeler
Last active December 5, 2017 22:04
Show Gist options
  • Save keeler/e28ea5d94fe3b2ff8081 to your computer and use it in GitHub Desktop.
Save keeler/e28ea5d94fe3b2ff8081 to your computer and use it in GitHub Desktop.
Git aliases
[alias]
co = checkout
ci = commit
st = status -s
br = branch
ls = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue) <%an>%Creset' --abbrev-commit --decorate
ll = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue) <%an>%Creset' --abbrev-commit --decorate --numstat
type = cat-file -t
dump = cat-file -p
undo = reset --soft HEAD~1
discard = checkout --
unstage = reset HEAD
grep = !git ls-files | grep -i
unpushed = log --branches --not --remotes --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment