dotfiles/dot_gitconfig.tmpl

32 lines
862 B
Cheetah
Raw Normal View History

2020-06-15 09:11:21 +00:00
[user]
2020-11-19 01:54:10 +00:00
email = mail@mzhang.io
name = Michael Zhang
signingkey = 925ECC02890D5CDAE26180D4BDA47A31A3C8EE6B
2020-11-03 23:24:41 +00:00
2020-06-15 10:09:28 +00:00
[alias]
2021-06-30 05:59:16 +00: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 23:24:41 +00: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 07:40:04 +00:00
[init]
defaultBranch = "master"
2020-06-15 09:11:21 +00:00
[pull]
2020-11-19 01:54:10 +00:00
rebase = true
2020-11-03 23:24:41 +00:00
2020-06-15 09:11:21 +00:00
[commit]
2020-11-19 01:54:10 +00:00
gpgsign = true
2020-11-19 03:37:40 +00:00
{{ if .pass }}
2020-11-19 01:54:10 +00:00
[sendemail]
smtpServer = mzhang.io
smtpServerPort = 465
smtpUser = mail@mzhang.io
smtpPass = {{ pass "email/mail@mzhang.io" }}
smtpEncryption = ssl
confirm = auto
2020-11-19 03:37:40 +00:00
{{ end }}
2020-06-15 10:09:28 +00:00
# vim: set filetype=gitconfig: