gitgnome

How to use git with gnome-keyring integration


Git 1.8.0 supports integration with gnome-keyring.

http://www.h-online.com/open/news/item/Git-1-8-0-can-access-Windows-and-GNOME-keyrings-1733879.html

After reading the docs about the git credentials helpers: http://git-scm.com/docs/gitcredentials.html

I was not able to find a way to use this new feature. How can I integrate it? I'm using Archlinux with git installed from Archlinux's repository. (git 1.8.0)


Solution

  • Git 1.8.0 comes with gnome-keyring support but the binary needs to be compiled for your platform.

    This is what solved it for me in Archlinux:

    $ sudo pacman -S libgnome-keyring
    $ cd /usr/share/git/credential/gnome-keyring
    $ make
    $ git config --global credential.helper /usr/share/git/credential/gnome-keyring/git-credential-gnome-keyring
    

    @VonC solution was close, but the git config command should point to the executable. That's why it was not working for me.