$ git push -u origin mainremote Support for password authentication was removed on August 13 2021remote Please see httpsdocsgithubcomenget-startedgetting-started-with-gitabout-remote-repositories#clon
这表示您使用的密码认证已被GitHub弃用,需要使用其他授权方式进行认证。您可以按照文档中提供的方法进行操作,例如使用SSH密钥进行认证。具体操作步骤请参考以下链接:
https://docs.github.com/en/authentication/connecting-to-github-with-ssh
或者您也可以使用个人访问令牌进行认证,具体操作步骤请参考以下链接:
https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
在生成个人访问令牌时,请确保仅授予所需的权限,并将其保存在安全的地方。
原文地址: https://www.cveoy.top/t/topic/Y6q 著作权归作者所有。请勿转载和采集!