-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdot_gitconfig.tmpl
More file actions
80 lines (78 loc) · 1.45 KB
/
dot_gitconfig.tmpl
File metadata and controls
80 lines (78 loc) · 1.45 KB
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
{{ $proxy_url := "" -}}
{{ $proxy_envs := list
"http_proxy"
"https_proxy"
"HTTP_PROXY"
"HTTPS_PROXY" -}}
{{ range $proxy_envs -}}
{{ if env . -}}
{{ $proxy_url = env . -}}
{{ break -}}
{{ end -}}
{{ end -}}
[init]
defaultBranch = main
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[core]
autocrlf = input
whitespace = fix,space-before-tab,tab-in-indent,trailing-space
excludesfile = ~/.gitignore_global
[apply]
whitespace = fix
[push]
default = simple
[pull]
rebase = true
[alias]
br = branch
ci = commit
co = checkout
df = diff
g = grep -I
lg = log -p
rb = rbranch
rv = review
st = status
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[merge]
log = true
tool = nvimdiff
[mergetool]
prompt = true
[mergetool "nvimdiff"]
cmd = nvim -d $BASE $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'
[user]
name = Sho Sakakibara
{{- if (index . "email") }}
email = {{ .email }}
{{- end }}
[credential "https://github.com"]
helper =
helper = !gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !gh auth git-credential
{{- if ne $proxy_url "" }}
[http]
proxy = {{ $proxy_url }}
[https]
proxy = {{ $proxy_url }}
{{- end }}