git dotfiles

This commit is contained in:
Daniel Yrovas 2022-03-23 20:54:32 +11:00
commit 8bcbb80f04
Signed by: danielyrovas
GPG key ID: C181BAC70BDE7C00

50
.config/git/config Normal file
View file

@ -0,0 +1,50 @@
[user]
name = Daniel Yrovas
email = dan@danielyrovas.com
signingkey = C181BAC70BDE7C00
[init]
defaultBranch = trunk
[ui "color"]
ui = always
[color]
ui = true
[core]
safecrlf = false
[merge]
tool = nvim -d
[alias]
c = commit
cm = commit -m '$2' && git push
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