diff options
| -rw-r--r-- | dot_gitconfig.tmpl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dot_gitconfig.tmpl b/dot_gitconfig.tmpl index ae1d845..6405a9e 100644 --- a/dot_gitconfig.tmpl +++ b/dot_gitconfig.tmpl @@ -1,3 +1,6 @@ +# vim:ft=gitconfig +# {{- /* This file supports Go's text/template language. */ -}} + [push] autoSetupRemote = true default = current @@ -15,3 +18,12 @@ 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 -}} |
