这个问题在这里已经有答案了:
如何从本地计算机中删除git帐户并添加新帐户
(4个答案)
5天前就关门了。
我曾经使用CLI做过一次本地git,但用的是不同的帐户。作为参考,我使用了以下视频:https://www.youtube.com/watch?v=DVRQoVRzMIY&ab\_channel=TechWithTim这个帐户可以用,但我想创建一个新帐户。在那之后,我成功地创建了新的文件并输入:
git配置--全局user.name“你的名字”
和
git配置--全局user.email "youremail@yourdomain.com“
当我为我的第一个帐户这样做时,我能够
git推流-u源码
然而,没有任何问题,现在我已经为我的第二个帐户重新做了一次,我收到了这个错误:
远程:对月球创建者/学习的权限_python.git拒绝Slow-Slow 4183。致命:无法访问‘ 'https://github.com/lunAr-creator/learning_python.git/':请求的URL返回错误: 403
Slow-Slow 3184是我的第一个账号,lunAr-creator是我的第二个账号
有没有办法解决这个问题?任何帮助都将不胜感激!
编辑:在我尝试了评论中的建议后,我收到了这个错误:
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
发布于 2021-02-25 00:42:48
https://stackoverflow.com/questions/66354101
复制相似问题