I\'ve been looking for a good encrypted git credential helper for Linux (something that can store passwords in an encrypted way, and retrieve them later, conforming to the git-c
This is what we have in git sources: https://github.com/git/git/tree/master/contrib/credential
So you can use gnome-keyring
(deprecated), libsecret
or gpg-encrypted .netrc
.
libsecret
could be used with any Linux distribution without GNOME, I believe.
git config --global credential.helper /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret
See https://stackoverflow.com/a/40312117/7976758.
This is how to use gpg-encrypted .netrc
: https://stackoverflow.com/a/18362082/7976758.
If you already use a password manager like 1Password or Lastpass or pass or gopass you can probably use that for managing your git credentials as long as you are only using it on your local system or one that you trust.
I did a quick search and found a few git-credential-APPNAME
helpers for each of the above (gopass should be compatible with the pass implementation).