-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
73 lines (72 loc) · 2.01 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
[user]
email = augusto.c.dias@gmail.com
name = Augusto César Dias
signingkey = 7D8396F74725A208D835CE3730E62A1E4F078650
[core]
editor = nvim --cmd 'let g:unception_block_while_host_edits=1'
pager = delta
[commit]
gpgsign = true
[tag]
gpgSign = true
[pull]
rebase = true
[diff]
tool = diffview
[difftool]
prompt = false
[difftool "diffview"]
cmd = nvim -n -c "DiffviewOpen" "$MERGE"
[merge]
tool = diffview
conflictstyle = zdiff3
[mergetool]
keepBackup = false
trustExitCode = false
prompt = true
[mergetool "diffview"]
cmd = nvim -n -c "DiffviewOpen" "$MERGE"
[rebase]
autosquash = true
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[log]
showSignature = true
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true # use n and N to move between diff sections
true-color = always
[alias]
a = add
aa = add .
ap = add -p
b = branch
brm = branch -D
s = status -s
st = status
sl = stash list
sa = stash apply
ss = stash save
co = checkout
cob = checkout -b
c = commit
cm = commit -m
cam = commit -am
diff-sbs = -c delta.features=side-by-side diff
wls = worktree list
wrm = worktree remove
wa = "!git worktree add ~/dev/$1 --checkout $2 #"
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
ld = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative
filelog = log -u
dl = "!git ll -1"
dlc = -c delta.features=side-by-side diff --cached HEAD^ # diff of the last commit
grep = grep -Ii
la = "!git config -l | grep alias | cut -c 7-" # list aliases
tidy = remote prune origin