-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitconfig
38 lines (38 loc) · 951 Bytes
/
.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
[include]
path = ~/.local/.gitconfig
[core]
editor = nvim
[color]
diff = auto
status = auto
branch = auto
interactive = auto
grep = auto
[diff]
tool = nvimdiff
[difftool]
prompt = false
[difftool "nvimdiff"]
cmd = nvim -d \"$LOCAL\" \"$REMOTE\"
[mergetool "nvimdiff"]
cmd = nvim -d \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[alias]
a = add .
aa = add --all
br = branch
ci = commit
cia = commit --amend
d = diff
dc = diff --cached
f = fetch origin --prune
l = log --graph --date=short --pretty=format:\"%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset\"
la = l --all
st = status -s
sw = switch
dmb = "!f () { git checkout $1; git branch --merged | egrep -v '\\*|develop|main' | xargs git branch -d; };f"
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true