ansible-role-common/templates/_gitconfig.j2

27 lines
591 B
Plaintext
Raw Normal View History

{% if gitconfig_name is defined and gitconfig_email is defined %}
[user]
name = {{ gitconfig_name }}
email = {{ gitconfig_email }}
{% endif %}
[core]
excludesfile = ~/.gitignore_global
editor = vi
[push]
default = matching
[color]
ui = auto
[help]
autocorrect = 1
[pull]
ff = only
2021-05-01 17:42:05 +00:00
[init]
defaultBranch = main
[pager]
branch = false
config = false
stash = false
[alias]
hist = log --graph --abbrev-commit --decorate --format=format:'%C(red)%h%C(reset) - %C(green)(%ar)%C(reset) %C(reset)%s %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' -32
logs = log --show-signature