dotfiles/dot_gitconfig.tmpl

32 lines
862 B
Cheetah
Raw Normal View History

2020-06-15 04:11:21 -05:00
[user]
2020-11-18 19:54:10 -06:00
email = mail@mzhang.io
name = Michael Zhang
signingkey = 925ECC02890D5CDAE26180D4BDA47A31A3C8EE6B
2020-11-03 17:24:41 -06:00
2020-06-15 05:09:28 -05:00
[alias]
2021-06-30 00:59:16 -05:00
lg = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lgg = log --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
2020-11-03 17:24:41 -06:00
pushpr = "!f() { git push origin master;git commit --allow-empty -m 'push to execute post-receive';git push origin master; }; f"
2021-03-20 02:40:04 -05:00
[init]
defaultBranch = "master"
2020-06-15 04:11:21 -05:00
[pull]
2020-11-18 19:54:10 -06:00
rebase = true
2020-11-03 17:24:41 -06:00
2020-06-15 04:11:21 -05:00
[commit]
2020-11-18 19:54:10 -06:00
gpgsign = true
2020-11-18 21:37:40 -06:00
{{ if .pass }}
2020-11-18 19:54:10 -06:00
[sendemail]
smtpServer = mzhang.io
smtpServerPort = 465
smtpUser = mail@mzhang.io
smtpPass = {{ pass "email/mail@mzhang.io" }}
smtpEncryption = ssl
confirm = auto
2020-11-18 21:37:40 -06:00
{{ end }}
2020-06-15 05:09:28 -05:00
# vim: set filetype=gitconfig: