I've been recently looking for a solution on how to securely save git credentials in CentOS 7.
I want to save credentials for multiple git repositories.
The solution that I come up with is to use gnome-keyring with any version of git. but I was experiencing some issues with it. and I found many posts saying it's not a good a solution in Redhat 7 or Centos 7. and It will be deprecated.
git config --global credential.helper /usr/share/doc/git/contrib/credential/gnome-keyring/git-credential-gnome-keyrin
But this didn't work for me, an error when using git :
error communicating with gnome-keyring-daemon
then I upgraded git the last version 2.11+ to use libsecret which seems to be more easy to use.
I have done the same thing.
git config --global credential.helper /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret
And this seems to work as expected. my Question is this is a good solution to securely save git credentials ? Do you know any other solution to save git credentials on a CentOS machine?