-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_gitconfig.tmpl
65 lines (61 loc) · 1.35 KB
/
dot_gitconfig.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[user]
name = Ruben Aleman
email = {{ .email }}
signingKey = {{ .chezmoi.homeDir }}/.ssh/{{ .ssh_key_pub }}
[core]
editor = nano
excludesfile = {{ .chezmoi.homeDir }}/.gitignore
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
whitespace = white reverse
meta = blue reverse
frag = blue reverse
old = red
new = green
[color "status"]
added = green
changed = yellow
untracked = cyan
[push]
default = current
[alias]
uncommit = reset HEAD~1 --soft
slog = log --oneline -n
co = checkout
cob = checkout -b
com = commit -m
ds = diff --staged
cane = commit --amend --no-edit
rh = "!f() { git rebase -i HEAD~$1; }; f"
acp = "!git add -u && git commit -m \"update $(date '+%Y-%m-%d %H:%M')\" && git push"
rc = rebase --continue
pfwl = push --force-with-lease
[merge]
ff = true
[init]
defaultBranch = main
[core]
pager = delta
sshCommand = ssh -i ~/.ssh/{{ .ssh_key_pub }}
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true # use n and N to move between diff sections
line-numbers = true
side-by-side = true
# delta detects terminal colors automatically; set one of these to disable auto-detection
# dark = true
# light = true
[merge]
conflictstyle = diff3
[diff]
colorMoved = default
[gpg]
format = ssh
[commit]
gpgsign = true