Cleanup of gitconfig

This commit is contained in:
yan 2011-11-22 10:41:15 -06:00
parent 34bc83671f
commit da1e417f4a
2 changed files with 32 additions and 10 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.DS_Store .DS_Store
vim/backups vim/backups
*un~ *un~
.netrwhist

View File

@ -1,3 +1,5 @@
[github]
user = skwp
[user] [user]
name = yan name = yan
email = yan@pritzker.ws email = yan@pritzker.ws
@ -12,10 +14,6 @@
frag = magenta bold frag = magenta bold
old = red bold old = red bold
new = green bold new = green bold
; [color "status"]
; added = green
; changed = yellow
; untracked = red
[alias] [alias]
d = diff # show unstaged changes d = diff # show unstaged changes
dc = diff --cached # show staged changes dc = diff --cached # show staged changes
@ -30,8 +28,6 @@
addall = !sh -c 'git add . && git add -u' addall = !sh -c 'git add . && git add -u'
# stashselective = !f(){ git add -A; git unstage $1; git ci -m "temp"; git stash; git uncommit; }; f
# rebasing # rebasing
rc = rebase --continue rc = rebase --continue
rs = rebase --skip rs = rebase --skip
@ -83,9 +79,34 @@
[branch] [branch]
autosetupmerge = true autosetupmerge = true
[push] [push]
default = matching # 'git push' will push the current branch to its tracking branch
[github] # the usual default is to push all branches
user = skwp default = tracking
[core] [core]
autocrlf = false autocrlf = false
editor = /usr/bin/vim editor = /usr/bin/vim
excludesfile = /Users/yan/.gitignore_global
[merge]
tool = threesome
[mergetool "threesome"]
cmd = "mvim -f $BASE $LOCAL $REMOTE $MERGED -c 'ThreesomeInit'"
trustExitCode = true
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[advice]
statusHints = false
[diff]
# Git diff will use (i)ndex, (w)ork tree, (c)ommit and (o)bject
# instead of a/b/c/d as prefixes for patches
mnemonicprefix = true
[rerere]
# Remember my merges
# http://gitfu.wordpress.com/2008/04/20/git-rerere-rereremember-what-you-did-last-time/
enabled = true