dotfiles-ansible/roles/git/templates/config.j2

46 lines
1.0 KiB
Django/Jinja

[http]
sslverify = true
[commit]
gpgsign = true
[user]
name = {{ user_name }}
email = {{ user_email }}
signingkey = {{ gpg_signature }}
[core]
editor = nvim
whitespace = trailing-space
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[rebase]
autosquash = true
[pull]
rebase = true
[fetch]
prune = true
[init]
defaultBranch = main
[push]
followTags = true
[help]
autocorrect = 1
[submodule]
recurse = true
[alias]
l = log --graph --pretty=format:'%C(italic)%t%Creset %C(bold)<%an>%Creset -> %C(bold)%d%Creset %C(blue)%s%Creset - %C(italic)(%cr)%Creset'
s = status -sbu
sbu = submodule update --remote --merge
unstage = reset HEAD
[url "https://github.com/"]
insteadOf = gh:
[url "https://gitlab.com/"]
insteadOf = gl:
[url "https://git.disroot.org/"]
insteadOf = dr:
[url "https://codeberg.org/"]
insteadOf = cb:
[url "https://git.sr.ht/~"]
insteadOf = sr: