-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_gitconfig
81 lines (66 loc) · 1.34 KB
/
dot_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
[core]
pager = delta
excludesfile = ~/.gitignore_global
editor = nvim
[interactive]
diffFilter = delta --color-only
[user]
email = [email protected]
name = g3offrey
[merge]
tool = nvimdiff
[mergetool]
keepBackup = false
keepTemporaries = false
prompt = false
[mergetool "nvimdiff"]
cmd = nvim -d $LOCAL $MERGED $REMOTE -c 'wincmd l | wincmd ='
[diff]
tool = nvimdiff
colorMoved = true
[difftool]
prompt = false
[difftool "nvimdiff"]
cmd = nvim -d $LOCAL $REMOTE
[push]
default = upstream
autoSetupRemote = true
[pull]
rebase = true
[rebase]
autosquash = true
[rerere]
enabled = true
[log]
decorate = short
[alias]
br = branch
ci = commit --verbose
ms = commit -m
aa = add --all
co = checkout
sw = switch
r = restore
df = diff
rb = rebase
pl = pull
psf = push --force-with-lease
ps = push
sh = stash
rl = reflog
rs = reset
st = status
fix = commit --amend --no-edit
new = checkout -b
l = log --oneline --decorate -10 --pretty=format:'%C(yellow)%h%C(reset)%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
tree = log --graph --oneline --all
fc = "!f() { \
branch_name=$(git branch --format='%(refname:short)' | grep $1); \
git switch $branch_name; \
}; f"
[delta]
navigate = true
side-by-side = false
line-numbers = true
decorations = true
syntax-theme = Monokai Extended