2023-01-28 05:00:00 +01:00
|
|
|
[core]
|
|
|
|
whitespace = trailing-space
|
|
|
|
autocrlf = input
|
|
|
|
{% if ssh_client == 'dropbear' %}
|
|
|
|
sshCommand = dbclient -y
|
|
|
|
{% endif %}
|
2021-11-17 16:39:12 +01:00
|
|
|
[user]
|
|
|
|
name = {{ user_name }}
|
|
|
|
email = {{ user_email }}
|
2023-03-05 18:00:00 +01:00
|
|
|
{% if ssh_client == 'openssh' and gitcommit_sign_method == 'ssh' %}
|
2023-01-28 05:00:00 +01:00
|
|
|
signingKey = {{ user_ssh_key_path | default('~/.ssh/id_ed25519') }}
|
2023-03-05 18:00:00 +01:00
|
|
|
{% elif gitcommit_sign_method == 'openpgp' %}
|
2023-01-28 05:00:00 +01:00
|
|
|
signingKey = {{ user_gpg_signature }}
|
|
|
|
{% endif %}
|
2023-03-05 18:00:00 +01:00
|
|
|
[gpg]
|
|
|
|
format = {{ (gitcommit_sign_method in ['ssh', 'openpgp']) | ternary(gitcommit_sign_method, 'x509') }}
|
|
|
|
{% if not gitcommit_sign_method in ['ssh', 'openpgp'] %}
|
|
|
|
[gpg "x509"]
|
|
|
|
program = {{ gitcommit_sign_method }}
|
|
|
|
{% endif %}
|
2023-01-28 05:00:00 +01:00
|
|
|
[http]
|
|
|
|
sslVerify = true
|
|
|
|
[commit]
|
|
|
|
gpgSign = true
|
|
|
|
verbose = true
|
2023-03-05 18:00:00 +01:00
|
|
|
[tag]
|
|
|
|
gpgSign = true
|
2021-11-17 16:39:12 +01:00
|
|
|
[rebase]
|
2022-03-04 14:32:41 +01:00
|
|
|
autoSquash = true
|
2021-11-17 16:39:12 +01:00
|
|
|
[pull]
|
|
|
|
rebase = true
|
|
|
|
[fetch]
|
|
|
|
prune = true
|
|
|
|
[init]
|
|
|
|
defaultBranch = main
|
2022-10-16 06:00:00 +02:00
|
|
|
templateDir = ~/.config/git/templates
|
2021-11-17 16:39:12 +01:00
|
|
|
[push]
|
|
|
|
followTags = true
|
2023-01-28 05:00:00 +01:00
|
|
|
[diff]
|
|
|
|
wsErrorHighlight = all
|
|
|
|
# mnemonicPrefix = true
|
|
|
|
# colorMoved = dimmed-zebra
|
2022-05-27 18:29:00 +02:00
|
|
|
[format]
|
|
|
|
useAutoBase = true
|
2023-01-28 05:00:00 +01:00
|
|
|
[color]
|
|
|
|
ui = true
|
|
|
|
[color "diff"]
|
|
|
|
meta = cyan
|
|
|
|
frag = magenta bold
|
|
|
|
commit = yellow bold
|
|
|
|
old = red
|
|
|
|
new = brightgreen
|
|
|
|
whitespace = red reverse
|
|
|
|
[web]
|
|
|
|
browser = xdg-open
|
2021-11-17 16:39:12 +01:00
|
|
|
[help]
|
2022-03-04 14:32:41 +01:00
|
|
|
autoCorrect = 1
|
2021-11-17 16:39:12 +01:00
|
|
|
[submodule]
|
|
|
|
recurse = true
|
|
|
|
[alias]
|
2023-01-28 05:00:00 +01:00
|
|
|
l = log --all --graph --pretty=format:'%C(yellow)%h%Creset %C(bold)<%an>%Creset -%C(bold)%C(green)%d%Creset %C(blue)%s%Creset (%cr)'
|
2022-10-16 06:00:00 +02:00
|
|
|
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))'
|
2021-11-17 16:39:12 +01:00
|
|
|
s = status -sbu
|
|
|
|
sbu = submodule update --remote --merge
|
2022-11-21 05:00:00 +01:00
|
|
|
redo = reset HEAD~1 --mixed
|
2021-11-17 16:39:12 +01:00
|
|
|
unstage = reset HEAD
|
2023-01-28 05:00:00 +01:00
|
|
|
wdiff = diff --word-diff
|
|
|
|
shallow = clone --single-branch --depth=1
|
|
|
|
compare = !git log $1...$2 --format='%C(bold)%C(green)%m%Creset %C(yellow)%h%Creset %C(bold)<%an>%Creset - %C(blue)%s%Creset' --left-right
|
|
|
|
|
|
|
|
# External, non-core functions
|
2022-05-27 18:29:00 +02:00
|
|
|
[sendemail]
|
|
|
|
annotate = true
|
2022-10-16 06:00:00 +02:00
|
|
|
[privacy]
|
|
|
|
ignoreTimezone = true
|
|
|
|
pattern = hms
|
2023-04-19 19:00:00 +02:00
|
|
|
[ghq]
|
|
|
|
root = ~/Code
|