dotfiles/.config/git/config
2022-03-29 11:53:31 +11:00

49 lines
1 KiB
Text

[user]
name = Daniel Yrovas
email = dan@danielyrovas.com
signingkey = 502473574FB06D96
[init]
defaultBranch = trunk
[ui "color"]
ui = always
[color]
ui = true
[core]
safecrlf = false
[merge]
tool = nvim -d
[alias]
c = commit
s = status
st = status -u
lg = log --oneline
last = log -1 HEAD
cl = log -p -- ':(exclude)Cargo.lock'
f = push --force-with-lease
# https://stackoverflow.com/a/11688523/472927
ss = "!f() { git stash show stash^{/$*} -p; }; f"
sa = "!f() { git stash apply stash^{/$*}; }; f"
sl = stash list
alias = ! git config --get-regexp ^alias\\. | sed -e s/^alias\\.// -e s/\\ /\\ =\\ /
[pull]
ff = only
[push]
default = simple
[help]
autocorrect = 1
[url "git@github.com:"]
insteadOf = gh:
[github]
user = danielyrovas
[diff]
algorithm = patience
compactionHeuristic = true
[commit]
gpgsign = true
[protocol]
version = 2
[sendemail]
smtpserver = /usr/bin/msmtp
annotate = yes
[diff "odf"]
textconv = odt2txt