2

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)
PPShein
  • 13,309
  • 42
  • 142
  • 227

2 Answers2

1

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.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
0

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

Mohammed Abrar Ahmed
  • 2,290
  • 3
  • 15
  • 33
  • That is not an ssh URL: that would use the git protocol, which won't work with GitHub since it does not support authentication. It is important for the OP to understand why an https URL does not work. – VonC Nov 08 '17 at 05:56