Pyae Phyoe Shein
Pyae Phyoe Shein

Reputation: 13847

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)

Upvotes: 2

Views: 10734

Answers (2)

Mohammed Abrar Ahmed
Mohammed Abrar Ahmed

Reputation: 2490

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

Upvotes: 0

VonC
VonC

Reputation: 1329890

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.

Upvotes: 1

Related Questions