github使用push显示remote Support for password authentication was removed on August 13 2021remote Please see httpsdocsgithubcomenget-startedgetting-started-with-gitabout-remote-repositories#cloning-with-ht
这个问题是因为 GitHub 已经移除了密码验证方式,需要使用其他方式进行认证。您可以尝试以下解决方案:
- 使用 SSH 协议进行认证
您可以使用 SSH 协议进行认证,只需要将远程仓库的 URL 修改为 SSH 格式,例如:
git remote set-url origin git@github.com:TanShuiDeXiaoAi/ChatGPT.git
然后再执行 push 操作即可。
- 使用个人访问令牌进行认证
您可以在 GitHub 的个人设置中生成一个访问令牌,然后使用该令牌进行认证。具体步骤如下:
- 在 GitHub 上打开个人设置页面,选择 Developer settings -> Personal access tokens。
- 点击 Generate new token,填写 Token description,勾选需要的权限,然后点击 Generate token。
- 复制生成的访问令牌。
- 在本地仓库中执行以下命令:
git config --global credential.helper store
这个命令会在您的计算机上创建一个 Git 凭据存储,将您的 GitHub 用户名和访问令牌保存在其中。
- 然后执行 push 操作,Git 会自动使用凭据存储中的访问令牌进行认证。
希望以上解决方案可以帮助您解决问题。
原文地址: http://www.cveoy.top/t/topic/bkYd 著作权归作者所有。请勿转载和采集!