问题:
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.
办法:
访问相应网站,按步骤创建personal access token,记得把 personal access token保存下来。
然后重新git push -u origin master,会提示你输入用户名和密码,不管是用户登录密码,还是OpenSSH都直接把token粘贴过去。
然后就可以了。
有个困惑是,我有些仓库是没设置之前也可以正常Push的。