-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
64 lines (55 loc) · 1.31 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
[user]
name = Dariusch Ochlast
email = [email protected]
[core]
editor = nano
excludesfile = ~/.gitignore
[color]
ui = true
[pager]
diff = delta
log = delta
reflog = delta
show = delta
[init]
defaultBranch = main
[push]
default = current
[pull]
rebase = true
autostash = true
[alias]
changelog = !git shortlog master...$(git describe --tags --abbrev=0) --merges
# push and track the current branch
pb = !git push -u origin $(git rev-parse --abbrev-ref HEAD)
# Github
[url "ssh://[email protected]/"]
insteadOf = https://github.com/
[url "[email protected]:"]
insteadOf = https://github.com/
# Gitlab
[url "[email protected]:"]
insteadOf = https://gitlab.com/
insteadOf = http://gitlab.com/
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[includeIf "gitdir:~/workspace/"]
path = ~/.gitconfig-work
[interactive]
diffFilter = delta --color-only --features=interactive
[delta]
features = decorations
side-by-side = true
[delta "interactive"]
keep-plus-minus-markers = false
[delta "decorations"]
commit-decoration-style = blue ol
commit-style = raw
file-style = omit
hunk-header-decoration-style = blue box
hunk-header-file-style = red
hunk-header-line-number-style = "#067a00"
hunk-header-style = file line-number syntax