-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
114 lines (114 loc) · 2.99 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
102
103
104
105
106
107
108
109
110
111
112
113
114
# vim: set ft=gitconfig:
[core]
editor = vim
excludesFile = ~/.gitignore
[init]
defaultBranch = master
[pager]
diff = git-delta
show = git-delta
[protocol]
version = 2
[interactive]
diffFilter = git-delta --color-only
[diff]
algorithm = histogram
[merge]
defaultToUpstream = true
ff = false
tool = vimdiff
[push]
followTags = true
useForceIfIncludes = true
[pull]
ff = only
[rebase]
autoSquash = true
[status]
relativePaths = false
[alias]
b = switch
nb = switch --create
s = status
ss = status --short
d = diff
ds = --paginate diff --stat
dn = --paginate diff --name-only
dc = diff --cached
dcs = --paginate diff --cached --stat
dcn = --paginate diff --cached --name-only
d2 = -c pager.diff=\"git-delta -s\" diff
dc2 = -c pager.diff=\"git-delta -s\" diff --cached
a = add
aa = add --all
au = add --update
ae = add --edit
ap = add --patch
track = add --intent-to-add --
untrack = rm --cached --
c = commit
cm = commit -m
ca = !git add --all && git commit
cam = !git add --all && git commit -m
cu = !git add --update && git commit
cum = !git add --update && git commit -m
amend = commit --amend --reuse-message=HEAD --reset-author
wip = stash save --include-untracked
l = log --pretty=simple --no-merges
la = log --pretty=simple --no-merges --all
lg = log --pretty=simple --graph
lga = log --pretty=simple --graph --all
ll = log --pretty=detail --graph
lla = log --pretty=detail --graph --all
ls = log --pretty=detail --graph --stat
lsa = log --pretty=detail --graph --stat --all
ld = -c core.pager=git-delta log --pretty=detail --patch
lda = -c core.pager=git-delta log --pretty=detail --patch --all
resolve = !git diff --diff-filter=U --name-only -z | xargs --null --open-tty --no-run-if-empty ${EDITOR:-vi} --
[format]
pretty = detail
[pretty]
simple = %C(yellow)%h%C(reset) %s %C(green)(%cr)%C(reset) %C(bold blue)[%an]%C(reset)%C(auto)%d%C(reset)
detail = %C(yellow)commit %H%C(auto)%d%C(reset)%nauthor %an <%ae>%ndate %ci %C(green)(%cr)%C(reset)%n%n%w(72,4,8)%B%w(0)
[color "diff"]
commit = bold yellow
context = white
frag = bold cyan
func = cyan
meta = bold white
new = green
old = red
whitespace = red reverse
[color "grep"]
context = normal
filename = green
function = yellow
linenumber = cyan
match = bold red
selected = bold normal
separator = cyan
[user]
name = cions
email = gh.cions@gmail.com
[delta]
commit-style = raw
commit-decoration-style = yellow box
file-style = blue
file-decoration-style = blue ul ol
hunk-header-style = raw
hunk-header-decoration-style =
minus-style = syntax "#882222"
minus-non-emph-style = syntax "#882222"
minus-emph-style = "#ffffff" "#cc0000"
minus-empty-line-marker-style = syntax "#882222"
zero-style = syntax normal
plus-style = syntax "#004400"
plus-non-emph-style = syntax "#004400"
plus-emph-style = "#000000" "#00cc00"
plus-empty-line-marker-style = syntax "#004400"
whitespace-error-style = reverse red
file-modified-label = ""# U+200B U+200B
line-numbers = true
navigate = true
syntax-theme = Nord
tabs = 0