-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_gitconfig.tmpl
76 lines (68 loc) · 1.79 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
66
67
68
69
70
71
72
73
74
75
76
# Personal
#[includeIf "gitdir:Documents/code/github.com/**/.git"]
# path = ~/.gitconfig.personal
#
#[includeIf "gitdir:.config/**/.git"]
# path = ~/.gitconfig.personal
#
#[includeIf "gitdir:Documents/code/sr.ht/"]
# path = ~/.gitconfig.personal
#
#[includeIf "gitdir:~/.local/share/chezmoi"]
# path = ~/.gitconfig.personal
[user]
email = {{ .email }}
name = {{ .username }}
[color]
diff = auto
status = auto
branch = auto
ui = true
[alias]
s = status
d = diff
co = checkout
br = branch
last = log -1 HEAD
cane = commit --amend --no-edit
lo = log --oneline -n 10
pr = pull --rebase
cm = commit
rh = reset --hard
a = add
al = add .
ap = add -p
pu = push
loa = log --oneline --all --decorate --graph
patch = !git --no-pager diff --no-color
# Gitlab stuff
pms = push -o merge_request.create
pmd = push -o merge_request.create -o merge_request.draft
track = !git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`
pu = !git push -u origin `git symbolic-ref --short HEAD`
[core]
editor = nvim
pager = delta
autocrlf = input
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
dark = true
minus-style = syntax "#37222c"
minus-non-emph-style = syntax "#37222c"
minus-emph-style = syntax "#713137"
minus-empty-line-marker-style = syntax "#37222c"
line-numbers-minus-style = "#914c54"
plus-style = syntax "#20303b"
plus-non-emph-style = syntax "#20303b"
plus-emph-style = syntax "#2c5a66"
plus-empty-line-marker-style = syntax "#20303b"
line-numbers-plus-style = "#449dab"
line-numbers-zero-style = "#3b4261"
[merga]
conflictstyle = zdiff3
[status]
submodulesummary = true
[init]
defaultBranch = main