-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
101 lines (81 loc) · 1.8 KB
/
gitconfig
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[user]
email = [email protected]
name = Esben Sonne
[includeIf "gitdir:~/oc/"]
path = ~/.git_work_config
[core]
editor = nvim
whitespace = trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[init]
defaultBranch = main
[column]
ui = auto
[color]
ui = auto
[color "branch"]
current = yellow bold
local = green
remote = cyan
upstream = blue
[color "diff"]
context = white
meta = yellow
commit = green
frag = magenta
old = red
new = green
whitespace = red reverse
[color "status"]
added = green
changed = yellow
untracked = red
[merge]
# Include summaries of merged commits in newly created merge commit messages
log = true
tool = vimdiff
defaultToUpstream = true
[mergetool "vimdiff"]
conflictstyle = "diff3"
trustExitCode = false
[commit]
verbose = true
[push]
autoSetupRemote = true
default = tracking
followTags = true
[fetch]
recurseSubmodules = true
prune = true
# Prune local tags is probably a fine idea, but not for my workflow:
# pruneTags = true
all = true
[tag]
sort = -version:refname
[log]
decorate = short
[pretty]
custom = %C(yellow)%h%Creset -%C(green)%d%Creset %s %Cgreen(%cr) %C(bold blue)%an%Creset
# Include ~/.git_aliases
[include]
path = ~/.git_aliases
[diff]
algorithm = histogram
colorMoved = plain
menmonicPrefix = true
renames = true
[url "[email protected]:"]
insteadOf = https://github.com/
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[blame]
ignoreRevsFile = .git-blame-ignore-revs
# Remember and reuse conflict resolutions:
[rerere]
enabled = true
autoupdate = true
[branch]
sort = -committerdate