dotfiles/.config/git/gitconfig

66 lines
1010 B
Plaintext

# vim: set sw=2 sts=2 ts=2 noexpandtab :
[color]
ui = auto
branch = auto
diff = auto
grep = auto
interactive = auto
status = auto
[user]
email = ben@unkin.net
name = Ben Vincent
[core]
autocrlf = false
excludesfile = ~/.config/git/global_ignore
whitespace = blank-at-eol,blank-at-eof,space-before-tab
[init]
defaultBranch = master
[push]
default = simple
autoSetupRemote = true
[fetch]
prune = true
[rerere]
enabled = true
autoupdate = true
[rebase]
# Automatically stash before a rebase and unstash afterwards.
autoStash = true
[commit]
# Show diff when preparing commit message
verbose = true
template = ~/.config/git/gitmessage
###
### Github specific
###
[github]
user = neoloc
# read from given uri
# push to writable one
# http://bit.ly/g9c9Y2
#
[url "http://github.com/"]
insteadOf = "gh:"
[url "git@github.com:"]
pushInsteadOf = "https://github.com/"
pushInsteadOf = "http://github.com/"
pushInsteadOf = "gh:"
[credential]
helper = store
[pack]
threads = 2