-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
105 lines (77 loc) · 2.11 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
[user]
name = Sarunas Valaskevicius
email = [email protected]
[push]
default = current
[core]
quotepath = false
excludesfile = ~/.gitignore_global
autocrlf = input
preloadindex = true
; pager = git-fancy-diff | less --tabs=4 -RFX
[rerere]
enabled = true
autoUpdate = true
[interactive]
singlekey = true
; diffFilter = diff-so-fancy
diffFilter = delta --color-only
[url "git://github.com/"]
insteadOf = gh:
[url "[email protected]:"]
insteadOf = wgh:
[color]
branch = auto
diff = auto
status = auto
[apply]
whitespace = nowarn
[alias]
s = status -s
st = status
a = add
c = commit -v
ci = commit
ca = commit -av
u = reset HEAD
b = branch
br = branch
bn = checkout -b
co = checkout
d = diff
dc = diff --cached
ds = diff --stat
m = merge --no-ff
l = log --oneline --graph
lg = log --graph --color --full-history --date=short --pretty=format:\"%Cred%h%Cblue%d %Creset %s %C(green)(%an) %Creset%ad\"
t = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lgall = log --graph --full-history --all --color --date=short --pretty=format:\"%Cred%h%Cblue%d %Creset %s %C(green)(%an) %Creset%ad\"
please = push --force-with-lease
su = !BR=$(git symbolic-ref --short HEAD) && git branch --set-upstream-to=origin/"$BR" "$BR"
logdt = "!f() { GIT_EXTERNAL_DIFF='difft --display inline' git log -p --ext-diff; }; f"
dft = "!f() { GIT_EXTERNAL_DIFF='difft --display inline' git diff --ext-diff \"$@\"; }; f"
[web]
browser = xdg-open
[difftool]
prompt = false
[mergetool]
prompt = false
[diff]
tool = vimdiff
[merge]
tool = vimdiff
[gc]
auto = 256
[pull]
rebase = true
[core]
pager = delta --keep-plus-minus-markers --dark --true-color auto
[interactive]
diffFilter = delta --color-only --dark --true-color auto
[delta]
navigate = true # use n and N to move between diff sections
light = false # set to true if you're in a terminal w/ a light background color (e.g. the default macOS terminal)
[merge]
conflictstyle = diff3
[diff]
colorMoved = default