简体   繁体   English

致命:无法访问“ https://github.com/MyName/MyRepo.git/”:请求的URL返回错误:403

[英]fatal: unable to access 'https://github.com/MyName/MyRepo.git/': The requested URL returned error: 403

I have an old Github account which works fine and I've recently created new Github account.in the new one whenever I'm trying to do git push command I get and error.the scenario is the two ones below and in both scenarios I get an error: 我有一个旧的Github帐户,可以正常工作,并且我最近创建了一个新的Github帐户。每当我尝试执行git push命令时,我都会在新帐户中出错。该场景是下面的两个场景得到一个错误:

  1. I initialize a local repo and then make a repo (without readme.md file) in my new github account and finally I try to push this local (initialized) repo to my new github account to my github repo. 我初始化一个本地存储库,然后在新的github帐户中创建一个存储库(没有readme.md文件),最后我尝试将该本地(初始化的)存储库推送到我的新github帐户到我的github存储库。

  2. I create a repo in my new Github account (with readme.md file) and cloning into my machine and after applying some changes and after doing git add and git commit I do the git push command but I got an error 我在新的Github帐户(带有readme.md文件)中创建了一个存储库,并克隆到我的机器中,应用了一些更改之后,在执行git add和git commit之后,我执行了git push命令,但出现错误

Note: dolatabadiahmad is my new account and ahmaddolatabadi is my old account 注意:dolatabadiahmad是我的新帐户,ahmaddolatabadi是我的旧帐户

$ git push --set-upstream origin master

remote: Permission to dolatabadiahmad/myone.git denied to ahmaddolatabadi. 远程:拒绝对ahmaddolatabadi进行dolatabadiahmad / myone.git的权限。

fatal: unable to access ' https://github.com/dolatabadiahmad/myone.git/ ': 致命的:无法访问' https://github.com/dolatabadiahmad/myone.git/ ':

The requested URL returned error: 403. 请求的URL返回错误:403。

You may not have more than one free GitHub Account. 您可能没有多个免费的GitHub帐户。

Besides of that, you should look for your Git Credentials to check whether the device has already recorded the username and password (since you are using HTTPS method) of your old account. 除此之外,您还应该查找Git凭据以检查设备是否已经记录了旧帐户的用户名和密码(因为您正在使用HTTPS方法)。

暂无
暂无

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

相关问题 remote:拒绝XXX / .git的权限给YYY。 致命:无法访问“ https://github.com/XXX//”:请求的URL返回错误:403 - remote: Permission to XXX/.git denied to YYY. fatal: unable to access 'https://github.com/XXX//': The requested URL returned error: 403 致命:无法访问“https://github.com/SOME_NAME/SOME_PROJECT.git/”:请求的网址返回错误:403 - fatal: unable to access 'https://github.com/SOME_NAME/SOME_PROJECT.git/': The requested URL returned error: 403 致命:无法访问“https://git-codecommit.eu-west-1.amazonaws.com/v1/repos/myrepo/”:请求的 URL 返回错误:403 - fatal: unable to access 'https://git-codecommit.eu-west-1.amazonaws.com/v1/repos/myrepo/': The requested URL returned error: 403 致命:无法访问“https://github.com/usename/my-project.git/”:请求的 URL 返回错误:403 Mac - fatal: unable to access 'https://github.com/usename/my-project.git/': The requested URL returned error: 403 Mac 克隆失败:无法访问“http://username:password@47.92.35.46:1010/r/MyRepo.git/”:请求的 URL 返回错误:403 - Clone failed: unable to access 'http://username:password@47.92.35.46:1010/r/MyRepo.git/': The requested URL returned error: 403 我该如何解决致命问题:无法访问“https://github.com/MTaha57/Build-Portfolio-.git/”:请求的 URL 返回错误:403 - How can i resolve fatal: unable to access 'https://github.com/MTaha57/Build-Portfolio-.git/': The requested URL returned error: 403 未能将一些引用推到'https://github.com/myname/myrepo' - failed to push some refs to 'https://github.com/myname/myrepo' 致命:无法访问“https://git-codecommit.us-east-1.amazonaws.com/v1/repos/lambda-pipeline-repo/”:请求的 URL 返回错误:403 - fatal: unable to access 'https://git-codecommit.us-east-1.amazonaws.com/v1/repos/lambda-pipeline-repo/': The requested URL returned error: 403 致命:拒绝 git 凭据后,“https://github.com/myrepo/frontend/”的身份验证失败 - fatal: Authentication failed for 'https://github.com/myrepo/frontend/' After denying git credentials GitHub - 错误: 无法将一些引用推送到 'git@github.com:myrepo.git' - GitHub - error: failed to push some refs to 'git@github.com:myrepo.git'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM