Created
October 3, 2012 18:06
-
-
Save mattraibert/3828673 to your computer and use it in GitHub Desktop.
some fancy git configs
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] | |
ci = commit -m | |
co = checkout | |
st = status | |
br = branch | |
di = diff | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
# show difference between the HEAD and the index | |
staged = diff --cached | |
# show difference between working tree and the index | |
unstaged = diff | |
# show staged and unstaged changes (what would be committed with "git commit -a") | |
both = diff HEAD | |
[core] | |
excludesfile = $HOME/.gitignore | |
attributesfile = ~/.gitattributes | |
[color] | |
ui = auto | |
[diff "image"] | |
textconv = sips -g allxml | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment