dotfiles/playbooks/roles/git/templates/gitconfig.j2
Matej Focko 5358838be5
fix(git): add alias and tag signing
- sign tags by default
- add `graph` alias

Signed-off-by: Matej Focko <me@mfocko.xyz>
2022-08-18 00:09:48 +02:00

36 lines
504 B
Django/Jinja

[alias]
scommit = commit --signoff
graph = log --oneline --decorate --graph --all
[commit]
gpgsign = true
[core]
editor = code --wait
excludesfile = ~/.gitignore
[diff]
tool = vscode-difftool
[difftool "vscode-difftool"]
cmd = code --wait --diff $LOCAL $REMOTE
[gpg]
program = gpg2
[init]
defaultBranch = main
[pull]
rebase = true
[rebase]
autoStash = true
[tag]
gpgSign = true
[user]
name = Matej Focko
email = {{ git_email }}
signingkey = {{ gpg_signingkey }}