Files
skel/dotfiles/gitconfig
David Tomaschik 286eb02f4b Update git branches on push.
This pushes to clean checked-out repositories.  Only works since git
2.3.0, so on older versions, I'll apparently need to use a local dotfile
for those systems.

git config receive.denyCurrentBranch updateInstead
2018-03-04 22:15:36 -08:00

61 lines
1.2 KiB
Plaintext

[user]
name = David Tomaschik
email = david@systemoverlord.com
signingKey = 0x5DEA789B
[core]
excludesfile = ~/.gitignore
editor = vim
whitespace = trailing-space,space-before-tab
[color]
diff = auto
status = auto
[diff]
tool = vimdiff
[difftool]
prompt = false
[alias]
st = status
last = log -1 HEAD
# Thanks to
# http://durdn.com/blog/2012/11/22/must-have-git-aliases-advanced-examples/
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
files = ls-files
f = "!git ls-files | grep -i"
logtree = log --graph --oneline --decorate --all
[push]
default = current
[web]
browser = chrome
[github]
user = matir
# Site specific config
[url "https://github.com./"]
insteadOf = "github:"
insteadOf = "github://"
[url "ssh://git@github.com/"]
pushInsteadOf = "github:"
pushInsteadOf = "github://"
[url "git://gist.github.com/"]
insteadOf = "gist:"
[url "git@gist.github.com:"]
pushInsteadOf = "gist:"
pushInsteadOf = "git://gist.github.com/"
[credential]
helper = cache --timeout=36000
[receive]
denyCurrentBranch = updateInstead