简体   繁体   中英

remote: Repository not found. fatal: repository

My project in github has been moved to another github account. I've added new origin and git repo in my current project. But when I push my new changes to new github repo, I've found following error message. Please let me know how to fix it.

remote: Repository not found.
fatal: repository 'https://github.com/MyDevelopment/project.mm.git/' not found

But I call like git remote -v return following accurate results:

origin  https://github.com/MyDevelopment/project.mm.git (fetch)
origin  https://github.com/MyDevelopment/project.mm.git (push)

Double-check the URL (it is case-sensitive)

But also double-check if you have a credential helper that would have cached your (old account) credentials (username/password) used to authentication you.

git config credential.helper 

For instance, on Windows, that would be the Windows Credential Managers .

Reset the url using this

git remote set-url origin git://new.url.here

It normally causes for the following reasons.

  • Check your spelling
  • Checking your permissions
  • Check your SSH access
  • Check that the repository really exists

Check the details here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM