小编Bil*_*thy的帖子

GitHub 的个人访问令牌不起作用?- 请求的 URL 返回错误:403

我已经尝试了此线程中提到的所有内容: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/': …
Run Code Online (Sandbox Code Playgroud)

git github

6
推荐指数
1
解决办法
9262
查看次数

标签 统计

git ×1

github ×1