-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdot_gitconfig.tmpl
104 lines (80 loc) · 1.82 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
[core]
editor = nvim
excludesfile = ~/.gitignore
pager = delta
hookspath = ~/.config/githooks
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true # use n and N to move between diff sections
light = true # set to true if you're in a terminal w/ a light background color (e.g. the default macOS terminal)
side-by-side = true
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow
frag = cyan bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[color "decorate"]
tag = magenta
[web]
browser = google-chrome
[alias]
; credit goes to https://gist.github.com/datagrok/5080545
serve = !bash -c '"echo \"Usage: git clone git://`hostname`/ <local-dirname>\"; git daemon --verbose --export-all --base-path=.git --reuseaddr --strict-paths .git/"'
today = log --author=Ming --since="6am" --branches
co = checkout
br = branch
ci = commit
st = status
[user]
name = Ming Liu
email = {{ .email | quote }}
[push]
default = current
followTags = true
[pull]
default = current
[grep]
extendRegexp = true
lineNumber = true
[diff]
tool = Kaleidoscope
colorMoved = default
[merge]
tool = Kaleidoscope
conflictstyle = diff3
[difftool "Kaleidoscope"]
cmd = ksdiff --partial-changeset --relative-path \"$MERGED\" -- \"$LOCAL\" \"$REMOTE\"
[mergetool]
prompt = false
[mergetool "Kaleidoscope"]
prompt = false
cmd = ksdiff --merge --output \"$MERGED\" --base \"$BASE\" -- \"$LOCAL\" --snapshot \"$REMOTE\" --snapshot
trustExitCode = true
[rebase]
autostash = true
[credential]
helper = osxkeychain
[format]
pretty = format:%h %Cblue%ad%Creset %ae %Cgreen%s%Creset %C(auto)%d%Creset
[log]
abbrevCommit = true
date = relative
decorate = true
[pager]
branch = false
tag = false
[fetch]
prune = true