-
Notifications
You must be signed in to change notification settings - Fork 1
/
gitconfig
79 lines (79 loc) · 1.7 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
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true
[delta]
navigate = true
line-numbers = true
[core]
editor = nvim
whitespace = trailing-space,space-before-tab
pager = delta
excludesFile = ~/.gitignore_global
[interactive]
diffFilter = delta --color-only
[merge]
conflictstyle = zdiff3
[diff]
tool = nvimdiff
colorMoved = default
[difftool]
prompt = false
[merge]
tool = fugitive
[mergetool "fugitive"]
cmd = nvim -f -c \"Gdiffsplit!\" \"$MERGED\"
[grep]
extendRegexp = true
lineNumber = true
[alias]
aa = add --all
ai = add --all --intent-to-add
ap = add --patch
authors = !git-authors
ca = commit --amend
cleanup = !git branch --merged | grep -v '*' | xargs git branch -d
d = diff
ds = diff --staged
f = fetch
fa = fetch --all
gc = gc --aggressive --prune=all
last = log --oneline -1
open = browse
p = !git pull origin $(git rev-parse --abbrev-ref HEAD)
pullf = !git fetch --all && git reset --hard origin/$(git rev-parse --abbrev-ref HEAD)
pushf = push --force
r = rebase
ra = rebase --abort
rc = rebase --continue
rh = reset --hard HEAD
ri = rebase --interactive
rs = restore --staged
ski = stash --keep-index
sp = stash pop
st = status
w = whatchanged
wip = commit --amend --no-edit
[include]
path = .gitconfig.local
[push]
default = current
[url "[email protected]:"]
pushinsteadof = "git://github.com/"
pushinsteadof = "https://github.com/"
[filter "media"]
required = true
clean = git media clean %f
smudge = git media smudge %f
[help]
autocorrect = 1
[init]
defaultBranch = main
templateDir = ~/.git_template
[branch]
autosetuprebase = always
[branch "main"]
rebase = true