Skip to content

Instantly share code, notes, and snippets.

@gabetax
Created May 31, 2012 21:12
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 gabetax/2846337 to your computer and use it in GitHub Desktop.
Save gabetax/2846337 to your computer and use it in GitHub Desktop.
my .gitconfig
[color]
diff = auto
status = auto
branch = auto
[color "diff"]
whitespace = red reverse
[core]
#whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
autocrlf = input
#safecrlf = true
quotepath = false
[alias]
amend = commit --amend -C HEAD
co = checkout
ci = commit
st = status
br = branch -a -v
hist = log --graph --pretty=format:'%Cred%h%Creset -%C(green)%C(bold)%d%Creset %s %C(yellow)(%cr)%Creset by %an' --abbrev-commit --all
type = cat-file -t
dump = cat-file -p
permission-reset = "!git diff -p | grep -E '^(diff|old mode|new mode)' | sed -e 's/^old/NEW/;s/^new/old/;s/^NEW/new/' | git apply"
[merge]
tool = opendiff
[mergetool]
keepBackup = true
[push]
default = current
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment