Home > front end >  What permissions should I choose for github fine-grained personal tokens?
What permissions should I choose for github fine-grained personal tokens?

Time:01-17

I got fatal: Authentication failed for 'https://github.com/Username/X.git/' after inputting the correct username and password.

I read this enter image description here

There are so many permissions and it looks so confusing.

CodePudding user response:

The permission for pushing seems to be Contents.

The alternatives to a fine-grained token are:

  1. Use a classic token. Fine-grained tokens are still in Beta
  2. Use Github cli and gh auth login with its web browser authentication (it works from console). This approach doesn't suffer from the problem of expired tokens.
  • Related