Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
请求的URL在Github中返回错误:403_Git_Github_Git Bash - Fatal编程技术网

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

请求的URL在Github中返回错误:403,git,github,git-bash,Git,Github,Git Bash,我收到这个错误,因为有两个存储库来自两个不同的帐户,如何解决这个问题 我从github克隆了一个project1表单

我收到这个错误,因为有两个存储库来自两个不同的帐户,如何解决这个问题


  • 我从github克隆了一个
    project1
    表单
  • 我能够提交并将更改推送到该
    Account-1
  • 我从一个github帐户克隆了另一个
    项目2
    ,但它是 与账户2不同
  • 我可以从
    帐户2
  • 但我无法推送到
    账户2
  • 我得到的错误如下所示:

    $ 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
    
    如果windows出现问题,请从windows历史记录中删除凭据

    • 转到凭据管理器
    • 转到Windows凭据
    • 删除通用凭据下的条目
    • 再次尝试连接。这一次,它将提示您输入正确的用户名和密码