-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_gitconfig.tmpl
executable file
·61 lines (47 loc) · 1.18 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
[user]
name = Masato Sugiyama
email = {{ .email }}
[includeIf "gitdir:{{ .chezmoi.sourceDir }}/"]
path = ~/.gitconfig_private
[includeIf "gitdir:{{ .chezmoi.homeDir }}/dev/src/github.com/smasato/**"]
path = ~/.gitconfig_private
[include]
path = ~/.config/gitalias/gitalias.txt
[color]
ui = true
[core]
editor = vim
pager = delta # git-delta required
excludesfile = ~/.gitignore_global
whitespace = cr-at-eol
[push]
autoSetupRemote = true
[interactive]
diffFilter = delta --color-only
[diff]
colorMoved = default
[delta]
features = side-by-side line-numbers decorations
whitespace-error-style = 22 reverse
[delta "decorations"]
commit-decoration-style = bold yellow box ul
file-style = bold yellow ul
file-decoration-style = none
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[init]
defaultBranch = main
[ghq]
root = ~/dev/go/src
root = ~/dev/src
{{- if .work }}
[url "git@github.com:"]
insteadOf = https://github.com
[http]
sslVerify = false
{{- end }}
[alias]
fu = "!git log -n 16 --pretty=format:'%h %s' --no-merges | fzf | cut -c -7 | xargs -o git commit --fixup"