Created
October 27, 2011 16:45
-
-
Save mathewpeterson/1320098 to your computer and use it in GitHub Desktop.
useful gitconfig settings
This file contains 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] | |
update = !git fetch origin && git rebase origin/master | |
addall = !git add -A && git status | |
done = !git fetch && git rebase origin/master && git checkout master && git merge @{-1} && git push | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
ir = !git rebase -i origin/master | |
unstage = reset HEAD | |
[color] | |
ui = auto | |
[push] | |
# Push current branch even if you've never pushed it before | |
default = current |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment