-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitconfig
68 lines (64 loc) · 1.58 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
[color]
ui = auto
[user]
name = zewelor
email = zewelor@gmail.com
signingkey = 0x7BE843082292E972
[core]
excludesfile = ~/.gitignore_global
# pager = less -F -X
editor = vim
pager = delta
[branch]
autosetuprebase = always
[push]
default = current
[pull]
rebase = true
[fetch]
prune = true
[include]
path = ~/.gitconfig.local
[diff]
tool = vimdiff
noprefix = true
colorMoved = default
algorithm = histogram
[merge]
tool = vimdiff
conflictstyle = zdiff3
[alias]
undo-commit = reset --soft HEAD^
rbi = !sh -c \"git rebase -i `git merge-base $1 HEAD`\" -
set-upstream = !git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`
rm-merged = !git branch --format '%(refname:short) %(upstream:track)' | awk '$2 == \"[gone]\" { print $1 }' | xargs -r git branch -D
sync = !git switch main && git pull --prune && git rm-merged
upstream-sync = !git pull upstream `git symbolic-ref --short HEAD` && git push origin
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[difftool]
prompt = false
[rebase]
autoStash = true
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true # use n and N to move between diff sections
features = decorations
syntax-theme = GitHub
light = true
[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
[init]
defaultBranch = main
[fixup]
rebase = true