1

With the new Git Credential Manager (GCM) how can I use it to store Github access token on Ubuntu? I have tried to read the usage text and it is not clear how one can store Github token using it.

Amani
  • 16,245
  • 29
  • 103
  • 153

1 Answers1

1

You can store it with:

printf "host=github.com\nprotocol=https\nusername=you\npassword=yourToken" | \ 
  git credential-manager-core store

Make sure git-credential-manager is in your $PATH.
Replace 'you' with your GitHub account name, and 'yourToken' by your GitHub token.

Amani
  • 16,245
  • 29
  • 103
  • 153
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250