remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for 'https://github.com/xxx'
原因
github取消了密码登陆推送,改用了访问令牌模式。
解决办法
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