I was looking for a way to store credentials securely while connecting to our Git server which uses SSL. I came across this suggestion by @james-ward (only edit I made was I updated our "system" config instead of our "global" config for Git (https://stackoverflow.com/a/14528360/6195194)
sudo apt-get install libgnome-keyring-dev
cd /usr/share/doc/git/contrib/credential/gnome-keyring
sudo make
git config --system credential.helper /usr/share/doc/git/contrib/credential/gnome-keyring/git-credential-gnome-keyring
I then can run
git clone https://ipaddress/git/repo.git
and the credential helper will store my credentials, however when I run the following:
sudo git clone https://ipaddress/git/repo.git testfolder
it give me the following error
** (process:3713): CRITICAL **: Error communicating with gnome-keyring-daemon
I sometimes need to run sudo git clone since sometimes the directory where I need to make a clone requires it. Any help would be appreciated.
Versions I am using: - git version 1.9.1 - Ubuntu Server 14.0.4
Thank you in advance! -Richard O.