-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
dot_gitconfig.tmpl
97 lines (82 loc) · 1.99 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
# vim: set filetype=gitconfig foldmethod=indent :
[user]
name = Munif Tanjim
username = MunifTanjim
email = {{ "aGVsbG9AbXVuaWZ0YW5qaW0uZGV2" | b64dec }}
signingkey = 9FA86B9EC363F224
[core]
excludesfile = ~/.config/git/ignore
pager = delta
sshCommand = "ssh -o ControlPath=none"
[diff]
tool = vimdiff
algorithm = histogram
[difftool]
prompt = false
trustExitCode = true
[difftool "code"]
cmd = code --wait --diff "$LOCAL" "$REMOTE"
[difftool "vimdiff"]
cmd = vim -d "$LOCAL" "$REMOTE"
[interactive]
diffFilter = delta --color-only
[init]
defaultBranch = main
[merge]
conflictStyle = merge
tool = vimdiff
[mergetool]
prompt = true
[mergetool "vimdiff"]
cmd = vim -d "$REMOVE" "$MERGED" "$LOCAL"
trustExitCode = true
[pull]
ff = only
[push]
autoSetupRemote = true
default = upstream
followTags = true
[rebase]
autosquash = true
[alias]
co = checkout
l = log --graph --pretty=oneline --abbrev-commit
pl = pull
ps = push
s = status --short
[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 = red
[delta]
syntax-theme = gruvbox-dark
line-numbers = true
[hub]
protocol = https
[credential]
helper = {{ if .meta.is.headless_machine -}} store {{- else if eq .chezmoi.os "darwin" -}} osxkeychain {{- else -}} /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret {{- end }}
[credential "https://github.com"]
username = MunifTanjim
helper = !gh auth git-credential
[credential "https://gist.github.com"]
username = MunifTanjim
helper = !gh auth git-credential
[credential "https://bitbucket.org"]
username = MunifTanjim
[credential "https://gitlab.com"]
username = MunifTanjim
[includeIf "gitdir:github/newscred/**"]
path = ~/.gitconfig.optimizely
[includeIf "gitdir:github/optimizely/**"]
path = ~/.gitconfig.optimizely