Skip to content

Instantly share code, notes, and snippets.

@mattraibert
Created October 3, 2012 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattraibert/3828673 to your computer and use it in GitHub Desktop.
Save mattraibert/3828673 to your computer and use it in GitHub Desktop.
some fancy git configs
[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