When I try to push it asks for a username and password. Even when the credentials are correct, I am not able to push.
I have not installed the CLI to config.
I have not enabled 2-factor for git.
I have tried increasing the timeout.
CodePudding user response:
You can’t push code to GitHub with a simple username and password anymore. Instead of a password to authenticate, GitHub now requires a personal access token instead.
To generate a personal access token in GitHub and fix the ‘support for password authentication removed’ error, follow these steps:
Log into GitHub with your username and password
Navigate to your GitHub account settings
Scroll down and click ‘Developer settings’ in the list of links to the left
Click the Personal access tokens link
Click the ‘Generate new token’ button
Add a ‘Note’ to describe the tokens usage
Set an expiration date for the GitHub personal access token
Select the appropriate authentication scope
Click the ‘Generate token’ button