Skip to content

Instantly share code, notes, and snippets.

@alpgarcia
Last active February 5, 2024 11:40
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save alpgarcia/c8ee20e232fa3e977f3092e352a38815 to your computer and use it in GitHub Desktop.
Save alpgarcia/c8ee20e232fa3e977f3092e352a38815 to your computer and use it in GitHub Desktop.
Configure GitHub token with gnome-keyring
  1. git --version
git version 2.17.1
  1. sudo apt-get install libsecret-1-0 libsecret-1-dev
  2. cd /usr/share/doc/git/contrib/credential/libsecret
  3. sudo make
  4. git config --global credential.helper /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret
  5. Next time Git asks for your GitHub username and password, just write your username and paste your token and they'll be stored in your keyring.
@bealbrown
Copy link

bealbrown commented May 18, 2023

Thank you! Worked for me :)

@hermeswing
Copy link

Thank you! Worked for me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment