-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_gitconfig.tmpl
87 lines (86 loc) · 2.06 KB
/
dot_gitconfig.tmpl
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[user]
email = "{{ .email }}"
name = "{{ .name }}"
signingkey = "{{ .signingkey }}"
[core]
quotepath = false
excludesfile = ~/.gitignore
editor = nvim
[commit]
gpgsign = true
[alias]
br = branch
df = diff
ph = push
pl = pull
ci = commit
cl = clone
co = checkout
dt = difftool
ls = ls-files
st = status -sb
overview = log --all --oneline --no-merges
# REVIEW_BASE defaults to 'develop' in zshrc
# ref: https://blog.jez.io/cli-code-review/
files = !git diff --name-only $(git merge-base HEAD \"$REVIEW_BASE\")
stat = !git diff --stat $(git merge-base HEAD \"$REVIEW_BASE\")
review = !vim -p $(git files) +\"tabdo Gdiff $REVIEW_BASE\" +\"let g:gitgutter_diff_base = '$REVIEW_BASE'\"
# git reviewone foo.js bar.js
reviewone = !vim -p +\"tabdo Gdiff $REVIEW_BASE\" +\"let g:gitgutter_diff_base = '$REVIEW_BASE'\"
conflicts = diff --name-only --diff-filter=U
[checkout]
defaultRemote = origin
[branch]
autosetuprebase = always
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold # line info
old = red # deletions
new = green # additions
whitespace = red 88
[color "status"]
added = yellow
changed = green
untracked = cyan
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[diff]
tool = nvimdiff
[difftool]
prompt = true
[difftool "nvimdiff"]
cmd = "nvim -d \"$LOCAL\" \"$REMOTE\""
[help]
autocorrect = 1
[gui]
encoding = utf-8
[i18n]
logoutputencoding = utf-8
[i18n "commit"]
encoding = utf-8
[init]
defaultBranch = main
[merge]
tool = nvimdiff
[mergetool "nvim"]
cmd = "nvim -f -c \"Gvdiffsplit!\" \"$MERGED\""
[pull]
ff = only # fast-foward only
twohead = ort
[pager]
diff = "diff-so-fancy | less --tabs=2 -RX"
show = "diff-so-fancy | less --tabs=2 -RX"
[credential "https://github.com"]
helper = !gh auth git-credential
[credential "https://gist.github.com"]
helper = !gh auth git-credential
# vim: set filetype=gitconfig: