Skip to content

Commit

Permalink
fix(linux): git credentials helper
Browse files Browse the repository at this point in the history
  • Loading branch information
senz committed May 2, 2024
1 parent 217d7aa commit a7b1c99
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ chezmoi purge

- [ ] Setup gpg and gpg-agent
- [ ] Import gpg keys
- [ ] (Linux) install https://github.com/Xgames123/git-credential-github

## TODO

Expand Down
8 changes: 8 additions & 0 deletions dot_gitconfig.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,15 @@
[commit]
gpgsign = true
[credential]
{{- if (eq .chezmoi.os "darwin") }}
helper = /usr/local/share/gcm-core/git-credential-manager
{{ end -}}
{{- if (eq .chezmoi.os "linux") }}
credentialStore = secretservice
[credential "https://github.com"]
helper = cache
helper = github # important that you put it last because we only need to run gcg when other helpers have failed to give credentials
{{ end -}}
[credential "https://dev.azure.com"]
useHttpPath = true
{{ end -}}

0 comments on commit a7b1c99

Please sign in to comment.