-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig
48 lines (39 loc) · 1.03 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
[user]
email = [email protected]
name = Higor Rozan
[core]
editor = nvim
pager = delta
[init]
defaultBranch = main
[alias]
s = !lazygit
st = status
c = commit
a = add .
rs = restore --staged
mt = mergetool
cb = checkout -b
cm = checkout main
co = checkout
l = !git log --pretty=format:\"%C(magenta)%h%Creset -%C(red)%d%Creset %s %C(dim green)(%cr) [%an]\" --abbrev-commit -30
del = branch -D
br = branch --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) [%(authorname)]' --sort=-committerdate
save = !git add -A && git commit
undo = reset HEAD~1 --mixed
rhard = !git reset --hard
[mergetool "nvim"]
cmd = nvim -f -c \"Gvdiffsplit!\" \"$MERGED\"
[merge]
tool = nvim
conflictstyle = diff3
[mergetool]
keepBackup = false
keepTemporaries = false
prompt = false
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true # use n and N to move between diff sections
[diff]
colorMoved = default