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

前端 未结 2 1551
时光说笑
时光说笑 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.

提交回复
热议问题