-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathgitconfig
70 lines (70 loc) · 1.53 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
[include]
path = ~/.gitconfig.local
path = ~/dotfiles/config/delta/themes.gitconfig
[core]
excludesfile = ~/.git-global-ignore
editor = nvim
pager = delta
precomposeunicode = true
[difftool]
prompt = false
[diff]
tool = nvimdiff
[difftool "nvimdiff"]
cmd = nvim -d $LOCAL $REMOTE
[merge]
tool = nvimdiff
[mergetool]
prompt = false
[mergetool "nvimdiff"]
cmd = nvim -d $BASE $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'
[color]
diff = auto
status = auto
branch = auto
[alias]
stat = status
s = status --ignore-submodules=untracked
c = commit
a = add
sn = status --untracked=no
save = stash save -u
co = checkout
cb = checkout -b
cp = cherry-pick
wc = whatchanged
l = log --graph --pretty=format:'%Cred[%h]%Creset%Cgreen[%ci]%C(bold blue)[%an]%Creset%C(yellow)%d%Creset %s'
f = fetch
fo = fetch origin
fom = fetch origin master:master
fon = fetch origin main:main
fod = fetch origin develop:develop
fop = fetch origin production:production
fu = fetch upstream
fum = fetch upstream master
b = branch
bd = branch -d
bD = branch -D
sub = submodule
suba = submodule add
subu = submodule update --init
pom = push origin master
po = push -u origin
pob = !sh -c 'git push -u origin `git r`'
pdo = push --delete origin
r = rev-parse --abbrev-ref HEAD
h = rev-parse HEAD
pr = pull-request -b master
prd = pull-request -b develop
[branch]
autosetuprebase = always
[gc]
auto = 0
[push]
default = current
[url "git@github.com:"]
insteadOf = https://github.com/
[delta]
features = arctic-fox
[rerere]
enabled = true