Skip to content

howto github auth

Ludovico Bianchi edited this page Oct 26, 2023 · 1 revision

How To Set Up GitHub Authentication on Linux (Ubuntu) with Git Credential Manager (GCM)

Instructions by @andrewlee94

  1. Set up 2-Factor Authentication (2FA) for GitHub (if not already)
  2. Create a gpg UID and key-pair on your system (run gpg --gen-key, then follow the prompts)
  3. Configure pass: pass init <gpg-id>
  4. Install gcm (Git Credential Manager) following these steps
  5. Configure git and gcm to use gpg as the password manager
git config --global credential.credentialStore gpg
  1. Next time you do a git action that requires authentication, you should be sent to a webpage to login and authenticate
  2. Once you do this, your credentials should be stored (i.e. subsequent operations requiring authentication will use the stored credentials and you won't be asked to login again)
Clone this wiki locally