0
In this post, I’m going to show you how to use the GNOME Keyring on Ubuntu 16.04 as a credential helper for Git. This post stems from my work in transitioning to Linux as my primary OS, an effort I’ve ratcheted up significantly in the last few weeks. What I’m including here isn’t new or ground-breaking information; I’m posting it primarily to make the information easier to find for others.
On Ubuntu 16.04, the basis for integrating GNOME Keyring into Git as a credential helper is already installed into the /usr/share/doc/git/contrib/credential/gnome-keyring
directory. However, if you try to simply run sudo make
in that directory, it will fail. In order to make it work, you must first install some additional development libraries:
sudo apt install libgnome-keyring-dev
Once you’ve installed this additional package, running sudo make
in that directory will quickly compile a binary named git-credential-gnome-keyring
. Once you have that binary, then you can configure Git to use GNOME Keyring as a credential helper. You can do this a couple of different ways:
-
You can use the git config
command, like this:
git config --global credential.helper /usr/share/doc/git/contrib/credential/gnome-keyring/git-credential-gnome-keyring
-
You can edit ~/.gitconfig
directly, using the text editor of your Continue reading