What's the best encrypted git credential helper for Linux?

前端 未结 2 1556
时光说笑
时光说笑 2021-02-06 07:42

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

相关标签:
2条回答
  • 2021-02-06 07:48

    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.

    0 讨论(0)
  • 2021-02-06 08:13

    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).

    0 讨论(0)
提交回复
热议问题