Homelab-Infra/roles/cli_productivity/templates/gitconfig.j2

43 lines
647 B
Django/Jinja

# Managed by Ansible
[user]
{% if cli_git_user_name | length > 0 %}
name = {{ cli_git_user_name }}
{% endif %}
{% if cli_git_user_email | length > 0 %}
email = {{ cli_git_user_email }}
{% endif %}
[init]
defaultBranch = main
[pull]
rebase = false
[push]
autoSetupRemote = true
[fetch]
prune = true
[diff]
colorMoved = default
[merge]
conflictstyle = zdiff3
[rerere]
enabled = true
[color]
ui = auto
[alias]
st = status
co = checkout
sw = switch
br = branch
ci = commit
lg = log --oneline --graph --decorate --all
last = log -1 HEAD --stat
unstage = restore --staged