-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig.j2
52 lines (49 loc) · 1.22 KB
/
.gitconfig.j2
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
{% if gitconfig.user %}
[user]
name = »gitconfig.user.name«
email = »gitconfig.user.email«
[global]
{% endif %}
[svn]
pushmergeinfo = true
[fetch]
prune = true
[alias]
au = add -u
br = branch
ci = commit
cl = clone
co = checkout
cp = cherry-pick
dc = diff --cached
diff = diff --word-diff
r = review
st = status -s
gud = log --oneline --decorate --graph --simplify-by-decoration
unpushed = "!f() { git log \"$1/$2..$2\"; }; f"
xxx = "!git commit -am \"@SQUASHME - XXX commit - committed an intermediate state for likely testing reasons\" && git push"
suburr = submodule update --init --recursive --remote
subur = submodule update --init --recursive
subu = submodule update --init
tag-creation-dates = "log --tags --simplify-by-decoration --pretty=\"format:%ai %d\""
{% if gitconfig.use_lfs %}
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
{% endif %}
[commit]
verbose = true
[pull]
rebase = true
[merge]
tool = nvimdiff
[mergetool]
keepBackup = false
[init]
defaultBranch = main
{% if gitconfig.aux %}
»gitconfig.aux«
{% endif %}
# vim: set ts=2 sw=2 et: