summaryrefslogtreecommitdiff
path: root/dot_gitconfig.tmpl
blob: 3e40f5d3d047affdf2a01647d99bdd373002497c (plain)
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
# vim:ft=gitconfig

[push]
	autoSetupRemote = true
	default = current
[user]
	name = {{ .git_name }}
	email = {{ .git_email }}
[alias]
	staash = stash --all
	trueblame = blame -w -C -C -C
	wdiff = diff --word-diff
	fpush = push --force-with-lease
	sdiff = diff --staged
[rerere]
	enabled = true
	autoUpdate = true
[branch]
	sort = committerdate

{{ if eq .chezmoi.os "windows" -}}
[credential "https://github.com"]
	helper = 
	helper = !'C:\\Users\\muftei\\scoop\\apps\\gh\\current\\bin\\gh.exe' auth git-credential
[credential "https://gist.github.com"]
	helper = 
	helper = !'C:\\Users\\muftei\\scoop\\apps\\gh\\current\\bin\\gh.exe' auth git-credential
{{ end -}}