Git Push ERROR: Repository not found

Question:

I am having a very strange problem with git and github. When I try and push, I am getting:

I added the remote:

Any ideas?

Answer:

If you use Git on Windows, try to clear your credentials:

  1. Locate “credential manager” (should be in your Control Panel)
  2. Remove all credentials related to GitHub
enter image description here

If you are using MAC OS

Open Keychain Access on your mac, choose “All Items” category and search for git. Delete all results found.

Now go to the terminal and try to push again. The terminal will ask for username and password. Enter the new relevant credentials and that’s it!

Leave a Reply