cfg/.gitconfig
Knut Ahlers b559e0ecc4
Cleanup git configuration
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-08-07 11:10:45 +02:00

54 lines
1.2 KiB
INI

[user]
name = Knut Ahlers
email = knut@ahlers.me
signingkey = D34BE99E
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
warnAmbiguousRefs = false
excludesfile = ~/.gitignore_global
[color]
diff = auto
status = auto
branch = auto
[commit]
gpgsign = true
[branch]
autosetuprebase = always
[diff]
renames = true
[push]
default = upstream
gpgSign = if-asked
[alias]
changes=diff --name-status -r
st = status
ci = commit
br = branch
co = checkout
df = diff
lg = log -p
starecopu = "!sh -c 'git stash && git pull --rebase && git stash pop && git commit -am \"$0\" && git push'"
spps = "!sh -c 'git stash && git pull --rebase && git push && git stash pop'"
pp = "!sh -c 'git pull --rebase && git push'"
ri = rebase --interactive --autosquash
lg = "log --color --graph --pretty=format:'%Cred%h%Creset [%G?]%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
sign-rebase = "!GIT_SEQUENCE_EDITOR='sed -i -re s/^pick/e/' sh -c 'git rebase -i $1 && git commit --amend -S --no-edit && while git rebase --continue; do git commit --amend -S --no-edit; done' -"
[receive]
denyNonFastForwards = true
[rerere]
enabled = true
[gpg]
program = gpg2