Skip to content

Setup Git Credential Manager for Ubuntu

Shamik Biswas edited this page Nov 3, 2023 · 5 revisions

Installation of Git Credential Manager

Official Link for Ubuntu

  • Download the latest package
  • sudo dpkg -i <path-to-package>
  • git-credential-manager configure

Official Link for Credential Stores

Store Credentials in pass and initialise it as a git repository to track your saved passwords

For more details on pass

  • sudo apt install pass

  • export GCM_CREDENTIAL_STORE=gpg or git config --global credential.credentialStore gpg

  • gpg --gen-key

One can always list all the gpg generated keys gpg --list-keys

  • pass init <gpg-public-id> e.g. pass init 0086A77440BBA63....
  • pass git init

In case you are facing this error:

fatal: GPG_TTY is not set; add export GPG_TTY=$(tty) to your profile. do the following:

export GPG_TTY=$(tty) or even better add it to your .bashrc

Clone this wiki locally