Add git configuration
This commit is contained in:
parent
2d5e5caa25
commit
7f3dd527af
3 changed files with 83 additions and 36 deletions
53
templates/gitconfig.j2
Normal file
53
templates/gitconfig.j2
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
[user]
|
||||
email = {{ git_email }}
|
||||
name = {{ git_name }}
|
||||
|
||||
[core]
|
||||
editor = nvim
|
||||
{% if ansible_facts['os_family'] == 'Archlinux' %}
|
||||
pager = delta
|
||||
{% endif %}
|
||||
|
||||
{% if ansible_facts['os_family'] == 'Archlinux' %}
|
||||
[interactive]
|
||||
diffFilter = delta --color-only
|
||||
{% endif %}
|
||||
|
||||
[init]
|
||||
defaultBranch = main
|
||||
|
||||
[commit]
|
||||
verbose = true
|
||||
|
||||
[push]
|
||||
default = simple
|
||||
autoSetupRemote = true
|
||||
|
||||
[pull]
|
||||
rebase = false
|
||||
|
||||
[fetch]
|
||||
prune = true
|
||||
pruneTags = true
|
||||
all = true
|
||||
|
||||
[merge]
|
||||
tool = nvimdiff
|
||||
conflictstyle = zdiff3
|
||||
|
||||
[diff]
|
||||
colorMoved = default
|
||||
mnemonicPrefix = true
|
||||
renames = true
|
||||
|
||||
[help]
|
||||
autocorrect = prompt
|
||||
|
||||
{% if ansible_facts['os_family'] == 'Archlinux' %}
|
||||
[delta]
|
||||
navigate = true
|
||||
hyperlinks = true
|
||||
line-numbers = true
|
||||
{% endif %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue