git push: remote: Support for password authentication was removed on August 13, 2021

created at 02-15-2022 views: 14


When I pushed the code to github today, I got an error:

The reason is because github does not support the password authentication scheme, and uses personal access token instead.


Generate token on Github Settings -> Developer Settings -> Personal Access Token -> Generate New Token -> Check as required -> Click Generate token -> Copy the generated token

Change the local credentials to Personal Access Token Control Panel -> Credential Manager -> Windows Credentials -> Find git:, and change the credentials to the token generated earlier.

For other platforms, please refer to here

created at:02-15-2022
edited at: 02-15-2022: