-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
60 lines (50 loc) · 1.43 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
[include]
path = .gituser
[core]
excludesfile = ~/.gitignore_global
pager = diff-so-fancy | less --tabs=2 -RFX
[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff
pl = pull
pul = pull
ps = push
pus = push
today = log --stat --since='1 Day Ago' --graph --pretty=oneline --abbrev-commit --date=relative
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lgs = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --stat
lf = !sh -c 'git lg --grep=$1 --max-count=5' -
tree = log --graph --decorate --pretty=oneline --abbrev-commit
# lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
patch = !git --no-pager diff --no-color
[color]
status = always
diff = always
[push]
default = simple
[merge]
tool = vimdiff
conflictstyle = diff3
[mergetool]
prompt = false
[credential]
helper = cache
# [commit]
# gpgsign = true
[init]
defaultBranch = master
[core]
hooksPath = /dev/null
[diff]
tool = kitty
guitool = kitty.gui
[difftool]
prompt = false
trustExitCode = true
[difftool "kitty"]
cmd = kitty +kitten diff $LOCAL $REMOTE
[difftool "kitty.gui"]
cmd = kitty kitty +kitten diff $LOCAL $REMOTE