Skip to content

Instantly share code, notes, and snippets.

View Yiming-M's full-sized avatar

Yiming Ma Yiming-M

View GitHub Profile
@alpgarcia
alpgarcia / github-token-for-git.md
Last active February 5, 2024 11:40
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.