I got fatal: Authentication failed for 'https://github.com/Username/X.git/'
after inputting the correct username and password.
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:
- Use a classic token. Fine-grained tokens are still in Beta
- 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.