Skip to content

Instantly share code, notes, and snippets.

@rpechayr
Last active December 4, 2015 09:27
Show Gist options
  • Save rpechayr/2113b3042e0e86c897dd to your computer and use it in GitHub Desktop.
Save rpechayr/2113b3042e0e86c897dd to your computer and use it in GitHub Desktop.
My git aliases (gitconfig extract)
[alias]
co = checkout
ci = commit
br = branch
st = status
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
m = checkout master
fo = fetch origin
mom = merge origin master
sweep = !git branch --merged master | grep -v 'master$' | xargs git branch -d\
&& git remote prune origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment