-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
45 lines (37 loc) · 1.13 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
[user]
email =
name =
signingkey =
[commit]
gpgsign = true
[credential]
helper = /usr/lib/git-core/git-credential-libsecret
[core]
editor = nvim
[merge]
tool = nvim
[mergetool "nvim"]
cmd = nvim -d \"$LOCAL\" \"$REMOTE\" \"$MERGED\"
trustExitCode = true
[alias]
root = rev-parse --show-toplevel
s = status
st = status --short --branch
amend = commit --amend
commit = commit -v
a = add
ap = add -p
l = log
# checkout faster
co = checkout
cob = checkout -b
com = checkout main
; LOGS
l = log --pretty=format:\"%Cred%h%Creset %ad %Cred|%Creset %s%Cred%d %Cblue[%an]\" --graph --date=short --date=format:'%Y-%m-%d %H:%M:%S'
ll = log --pretty=\"%n%Cblue--------------------------------------------------------------------------%n%Cred%h%Creset %ad %Cred|%Creset %s%Cred%d %Cblue[%an]\" --date=short --stat
lll = log --patch --pretty=\"%n%Cblue--------------------------------------------------------------------------%n%Cred%h%Creset %ad %Cred|%Creset %s%Cred%d %Cblue[%an]\" --date=short --stat
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true