如何修复 Github 错误 403?

如何修复 Github 错误 403?

我想在 GitHub 中推送提交。存储库的 URL 是https://github.com/ManuelaCarriero/NeuPipelines

我用了:

git commit -m "my commit" file

然后:

git push -u origin main

我收到错误:

Username for 'https://github.com': ManuelaCarriero
Password for 'https://[email protected]':
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/ManuelaCarriero/NeuPipelines/'.

我读了堆栈溢出我用过

git push

我输入了我的用户名,然后使用令牌作为生成的密码https://github.com/settings/tokens这样我就不再收到此消息了,但是我收到了错误 403。

manuela@wkrm01:/media/nas_rete/Work_manuela/NeuPipelines$ git push
Username for 'https://github.com': ManuelaCarriero
Password for 'https://[email protected]':
remote: Permission to ManuelaCarriero/NeuPipelines.git denied to ManuelaCarriero.
fatal: unable to access 'https://github.com/ManuelaCarriero/NeuPipelines/': The requested URL returned error: 403

在讨论中GitHub他们建议修改 Windows 控制面板中的“通用凭据”。

这似乎不是适合我的解决方案,因为我正在使用 MobaXterm 进行远程计算。您知道在这种情况下如何解决这个问题吗?

相关内容