我已经尝试了此线程中提到的所有内容:Pushing to Git returned Error Code 403 fatal: HTTP request failed
我在 MacBook Pro 上创建了一个 GitHub 存储库,将一些工作从我的 Lenovo 笔记本电脑推送到它,并尝试在我的 Mac 上继续工作。我一直在 Windows 上使用 PAT 进行身份验证,但使用相同的 PAT 返回 Mac 时出现此错误。
我尝试过生成新的 PAT,但这没有用。我已经有几年没有将代码推送到 GitHub 了,以前甚至不需要密码来执行此操作,并且不记得更改过任何开发人员设置?
这是我尝试使用 GitHub 密码推送时收到的完整消息
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/<username>/<reponame>.git/'
Run Code Online (Sandbox Code Playgroud)
与PAT
remote: Permission to <username>/<reponame>.git denied to <username>.
fatal: unable to access 'https://github.com/<username>/<reponame>.git/': The requested URL returned error: 403
Run Code Online (Sandbox Code Playgroud)
403 表明我突然无法访问自己的存储库,但我不知道除了使用 PAT 之外还能如何进行身份验证。有没有人遇到过这个问题,并且在尝试了上面链接中的所有内容后仍然卡住了?
或者,有什么方法可以使这个非 PAT 或密码受到保护吗?这里没有什么特别敏感的东西,所以可能不需要这个保护层?
小智 -4
您可能确实需要创建:
如何创建 ssh 日志密钥:
就是这样
希望有帮助
| 归档时间: |
|
| 查看次数: |
9262 次 |
| 最近记录: |