git push 出错:Support for password authentication was removed on August 13, 2021
创建token(Create Personal Access Token on GitHub):
From your GitHub account, go to Settings => Developer Settings => Personal Access Token => Generate New Token (Give your password) => Fillup the form => click Generate token => Copy the generated Token, it will be something like ghp_sFhFsSHhTzMDreGRLjmks4Tzuzgthdvfsrta
Now follow below method based on your machine:
For Windows OS ⤴
Go to Credential Manager from Control Panel => Windows Credentials => find
git:https://github.com
=> Edit => On Password replace with with your GitHub Personal Access Token => You are DoneIf you don’t find
git:https://github.com
=> Click on Add a generic credential => Internet address will begit:https://github.com
and you need to type in your username and password will be your GitHub Personal Access Token => Click Ok and you are done
就是添加windows凭据
这步之后,依然不行,需要更改迁出方式,
Developer's hack (shortcode):
git remote set-url origin https://<githubtoken>@github.com/<username>/<repositoryname>.git