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

51 lines
1.3 KiB
Plaintext
Raw Normal View History

[http]
sslVerify = true
[commit]
gpgSign = true
verbose = true
[user]
name = {{ user_name }}
email = {{ user_email }}
signingKey = {{ gpg_signature }}
[core]
editor = nvim
whitespace = trailing-space
autocrlf = input
{% if ssh_client == 'dropbear' %}
sshCommand = dbclient -y
{% endif %}
[rebase]
autoSquash = true
[pull]
rebase = true
[fetch]
prune = true
[init]
defaultBranch = main
templateDir = ~/.config/git/templates
[push]
followTags = true
[format]
useAutoBase = true
[help]
browser = {{ default_browser }}
autoCorrect = 1
[instaweb]
browser = {{ default_browser }}
[submodule]
recurse = true
[alias]
l = log --all --graph --pretty=format:'%C(yellow)%t%Creset %C(bold)<%an>%Creset -%C(bold)%C(green)%d%Creset %C(blue)%s%Creset (%cr)'
br = branch --sort=-committerdate --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) %(color:bold)<%(authorname)>%(color:reset) - %(color:blue)%(contents:subject)%(color:reset) (%(committerdate:relative))'
s = status -sbu
sbu = submodule update --remote --merge
undo = reset HEAD~1 --mixed
unstage = reset HEAD
[sendemail]
annotate = true
[privacy]
ignoreTimezone = true
pattern = hms
# I should only work 2 hours a day (^-^) at noon
limit = 11-13