Last active
December 4, 2015 09:27
-
-
Save rpechayr/2113b3042e0e86c897dd to your computer and use it in GitHub Desktop.
My git aliases (gitconfig extract)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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