Skip to main content
  1. About
  2. Stack Internal
The 2026 Annual Developer Survey is live— take the Survey today!

Timeline for answer to How to use git with gnome-keyring integration by James Ward

Current License: CC BY-SA 4.0

Post Revisions

34 events
when toggle format what by license comment
Feb 3, 2023 at 11:08 comment added Richard It works well for Ubuntu 22.04.1 LTS with git 2.34.1
Jun 6, 2021 at 2:23 comment added yellowjacket05 This worked for Ubuntu 18.04.5 LTS. I had already tried the gnome-keyring approach which didn't work as it is outdated now. Not sure if that earlier installation was required, but I only had to enter my credentials one more time after using this solution.
Apr 23, 2021 at 12:20 comment added bogec I needed to install also gnome-keyring package on Debian buster.
Apr 12, 2021 at 3:29 comment added Jonathon Reinhart Debian no longer provides libgnome-keyring or libgnome-keyring-dev so git-credential-gnome-keyring is no longer an option. However, they recommend using libsecret, which exists right next door in /usr/share/doc/git/contrib/credential/libsecret... going to try it out.
Feb 22, 2021 at 22:47 history rollback James Ward
Rollback to Revision 3
Feb 22, 2021 at 20:41 history edited dolmen CC BY-SA 4.0
Add missing git-doc package in instructions
Jan 7, 2021 at 19:38 comment added Bean Taxi +1 :) Btw if you use sudo make -C /usr/share/doc/git/contrib/credential/gnome-keyring you can get rid of the cd, save a line, and not touch the user's cwd.
Aug 18, 2020 at 9:50 comment added geekley For a nice clean installation: Mark temporary dev dependencies for auto-removal with sudo apt-mark auto libsecret-1-dev libglib2.0-dev if you won't need them after compilation. After make, move the compiled program sudo mv git-credential-libsecret /usr/local/bin/git-credential-libsecret and then remove the .o file generated with sudo make clean. This way, you can simply do sudo git config --system credential.helper libsecret. It will also be listed under git help -a | grep credential-.
Jan 8, 2020 at 18:37 comment added James Ward @Mario You need to follow the instructions for git >= 2.11 on Ubuntu 19.10
Jan 8, 2020 at 12:01 comment added mfg sudo make in the corresponding directory results in: No package 'gnome-keyring-1' found. The latter package does neither exist. gnome-keyring does not seem to be an option.
Jan 8, 2020 at 11:54 comment added mfg That solution does not seem to work anymore for me on Ubuntu 19.10. E: Unable to locate package libgnome-keyring-dev
Mar 13, 2019 at 14:03 comment added rugk (Partially @lanoxx) Actually, some distros like Fedora and Arch Linux do provide the compiled git-credential-libsecret binary by default. See this Stackoverflow answer.
Jan 15, 2019 at 22:31 history edited James Ward CC BY-SA 4.0
Updates
Mar 27, 2018 at 13:01 comment added Erik I Used this but instead of compiling it in the folder specified above I copied that folder to ~/bin, then ran make (without sudo) inside that folder. I could now do git config --global credential.helper ~/bin/gnome-keyring/git-credential-gnome-keyring to start using it.
Jan 29, 2018 at 23:23 comment added Madbreaks Tried and tried but only ever get CRITICAL **: Error communicating with gnome-keyring-daemon when attempting to pull from master, and am prompted for my creds. Ubuntu 14.04, git 2.16.1.
Aug 7, 2017 at 18:52 comment added Dave Wongillies Once I set PKG_CONFIG_PATH, git-credential-gnome-keyring built.
Aug 7, 2017 at 18:47 comment added Dave Wongillies Am I the only person who can't compile this on Ubuntu 16.04?? git-credential-gnome-keyring.c:29:18: fatal error: glib.h: No such file or directory compilation terminated. dpkg -l|egrep "libgnome-keyring-dev|libglib2.0-dev" ii libglib2.0-dev 2.48.2-0ubuntu1 amd64 Development files for the GLib library ii libgnome-keyring-dev 3.12.0-1build1 amd64 Development files for GNOME keyring service
Apr 20, 2017 at 14:39 comment added Eugene Kulabuhov Still valid for Ubuntu 16.04 LTS
Mar 15, 2017 at 14:01 comment added Will Manley @lanoxx: See bugs.debian.org/cgi-bin/bugreport.cgi?bug=740739 . Looks like it's just a lack of maintainer time/attention.
Feb 16, 2017 at 19:36 review Suggested edits
Feb 16, 2017 at 21:21
Feb 16, 2017 at 12:53 review Suggested edits
Feb 16, 2017 at 14:12
Jan 21, 2017 at 21:35 comment added Alyssa Haroldsen Sounds like it came with the binary already? Try just git config --global credential.helper /usr/share/doc/git/contrib/credential/gnome-keyring/git-cred‌​ential-gnome-keyring
Nov 23, 2016 at 12:39 comment added Borgy Manotoy * Ubuntu 16.10 Tried running this: $ sudo make Got the error: make: Nothing to be done for 'all'. Then I tried this: $ sudo make git config --global credential.helper /usr/share/doc/git/contrib/credential/gnome-keyring/git-credential-gnome-keyring Got the error: make: unrecognized option '--global' Usage: make [options] [target] ... I have a feeling this will also work on Ubuntu 16.10, but I do not know how could I make it work.
Jun 3, 2016 at 14:47 comment added Ufos I don't know what is this doing, but it works like magic! @Xubuntu_14.04.4
Mar 21, 2016 at 16:01 comment added temporary_user_name After the first step, tried the second and found nothing but osxkeychain inside /usr/share/doc/git/contrib/credentials/. :(
Mar 13, 2016 at 23:02 comment added Mateusz Piotrowski Worked for BunsenLabs 8.2
Oct 14, 2015 at 12:40 comment added Lari Hotari just had to do chmod 0755 git-credential-gnome-keyring to add execution permission to others than root
Mar 25, 2015 at 20:58 comment added craigb Verified in Ubuntu 14.10
Dec 19, 2014 at 0:55 comment added Eugene Kulabuhov Worked in Ubuntu 14.04 LTS!
Jul 12, 2014 at 15:31 comment added lanoxx Could anyone explain why this needs to be compiled manually and is not available by default through a package?
Mar 29, 2014 at 21:45 comment added MyChaOS Works in actual Debian testing (jessie) too!
Dec 24, 2013 at 5:18 comment added ShreevatsaR I was hesitant to do this at first, but I did finally and it works perfectly. As the docs for gitcredentials say, you might also want to do git help -a | grep credential- and see if you have other helpers installed. Ones that come by default are credential-cache (remember password for some time after you enter it, 15 minutes by default), and credential-store (just store the password in plaintext on an unencrypted file on disk, ~/.git-credentials by default).
Jan 28, 2013 at 22:14 history edited James Ward CC BY-SA 3.0
added 5 characters in body
Jan 25, 2013 at 18:45 history answered James Ward CC BY-SA 3.0
toggle format

AltStyle によって変換されたページ (->オリジナル) /