summaryrefslogtreecommitdiff
path: root/dot_gitconfig.tmpl
blob: 92c8843a60ebda5fdb5d7ee46675a6895f3b8532 (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
29
# vim:ft=gitconfig
# {{- /* This file supports Go's text/template language. */ -}}

[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 and (eq .chezmoi.os "windows") (isExecutable "gh") -}}
[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 -}}