简体   繁体   English

请求的URL返回错误:Github中为403

[英]The requested URL returned error: 403 in Github

I am getting this error since there are two repositories from two different accounts, How to resolve this !! 我收到此错误,因为有两个来自两个不同帐户的存储库,如何解决这个问题!


  1. I cloned one project1 form Account-1 from github 我从github克隆了一个来自Account-1 project1表单
  2. I am able to commit and pushed the changes to this Account-1 我可以将更改提交到此Account-1
  3. I cloned one more project2 from a github account but it is different from account-2 我从github帐户克隆了一个project2 ,但这与account-2不同
  4. I am able to clone from Account-2 我可以从Account-2克隆
  5. But I am not able to push to account-2 但我无法推送到account-2

I get the error as follows : 我得到如下错误

$ git push origin master
remote: Permission to myAccount/simple-demo.git denied to rahulTcs.
fatal: unable to access 'https://github.com/micheal/simple-demo.git/': The requested URL returned error: 403

This answer helped me solve the problem 这个答案帮助我解决了问题

If problem is coming on windows then remove the Credentials from the Windows history. 如果Windows上出现问题,请从Windows历史记录中删除凭据。

  • Go to Credential Manager 转到凭证管理器
  • Go to Windows Credentials 转到Windows凭据
  • Delete the entries under Generic Credentials 删除“通用凭据”下的条目
  • Try connecting again.This time , it should prompt you for the correct username and password. 再次尝试连接。这次,它会提示您输入正确的用户名和密码。

在此处输入图片说明 在此处输入图片说明

Remove credentials from Git 从Git删除凭证

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法推送到我的 github 存储库(请求的 URL 返回错误:403) - unable to push into my github repository (The requested URL returned error: 403) Github请求的URL返回错误:403 remote:用户权限 - Github The requested URL returned error: 403 remote: Permission to user Gitlab 错误:请求的 URL 返回错误:403 - Gitlab error : The requested URL returned error: 403 gitlab runner 请求的URL 返回error: 403 - gitlab runner The requested URL returned error: 403 Git推送:请求的URL返回错误:403 - Git push: The requested URL returned error: 403 请求的 URL 返回错误:403 Forbidden while accessing github.com - The requested URL returned error: 403 Forbidden while accessing github.com 适用于Windows的Github-“请求的URL返回错误:403”-更改远程服务器后仍然存在问题 - Github for Windows - “The requested URL returned error: 403” - persistent issue after changing remote server 致命:无法访问“ https://github.com/MyName/MyRepo.git/”:请求的URL返回错误:403 - fatal: unable to access 'https://github.com/MyName/MyRepo.git/': The requested URL returned error: 403 GitHub Remote:禁止致命:无法访问请求的网址返回错误:403 - GitHub Remote: forbidden fatal: unable to access the requested url returned error: 403 错误:请求的URL返回错误:403访问时禁止访问 - error: The requested URL returned error: 403 Forbidden while accessing
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM