I recently searched for a solution on how to safely save git credentials in CentOS 7 .
I want to save credentials for multiple git repositories.
The solution I came up with is to use gnome-keyring with any version of git. but I ran into some problems. and I found many posts saying that this is not a good solution in Redhat 7 or Centos 7 . and it will be obsolete.
git config --global credential.helper /usr/share/doc/git/contrib/credential/gnome-keyring/git-credential-gnome-keyrin
But this did not work for me, error when using git:
communication error with gnome-keyring-daemon
then i updated git latest version 2.11 + to use libsecret, which seems easier to use.
I did the same.
git config --global credential.helper /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret
And it seems to work as expected. my question is a good solution for keeping git credentials safe? Do you know any other solution for saving git credentials on a CentOS machine?
source share