I am having a very strange problem with
github. When I try and push, I am getting:
git push -u origin master
ERROR: Repository not found.
fatal: The remote end hung up unexpectedly
I added the remote:
git remote add origin firstname.lastname@example.org:account-name/repo-name.git
If you use Git on Windows, try to clear your credentials:
- Locate “credential manager” (should be in your Control Panel)
- Remove all credentials related to GitHub
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!