Authentication failed to do git push
- Author
- Jun 28, 2020
- 1 min read
Steps to fix:
Creating a GitHub personal access token.
In the upper-right corner of any page, click your profile photo, then click Settings.
In the left sidebar, click Developer settings.
In the left sidebar, click Personal access tokens.
Click Generate new token.
Give your token a descriptive name.
Select the scopes, or permissions, you’d like to grant this token. To use your token to access repositories from the command line, select repo.
Click Generate token.
Copy the token to your clipboard. For security reasons, after you navigate off the page, you will not be able to see the token again.
Using a token on the command line.
Once we have a token, we can enter it instead of our password when performing Git operations over HTTPS. Just inter your token after prompted a password and then watch the magic happen…:
Reference:
Comments