Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git Push ERROR: Repository not found

I am having a very strange problem with git and 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 [email protected]:account-name/repo-name.git 

Any ideas?

like image 211
Justin Avatar asked Apr 12 '12 01:04

Justin


People also ask

How do I resolve a repository not found?

Fix 5 - Git - remote: Repository not found Just run the git remote update command which updates the local repo with the remote repo and its credentials. If this command is executed without any issues then your issue will be resolved.

Why is my git repository not found?

Error: Repository not found. If you see this error when cloning a repository, it means that the repository does not exist or you do not have permission to access it.

Why is git push failing?

failed to push some refs to errors are often caused when changes are not committed before pushing, issues with Git pre-push hook, incorrect branch name, or the local repository not being in sync with the Git repository.

What are the issues when git push doesn't work?

You need to use git pull and resolve the difference between your local changes and the remote changes before you can git push . There is still a commit in the remote branch initializing the repo that may not be in your local version.


1 Answers

Check to see if you have read-write access.

The Git error message is misleading. I had a similar issue. I had been added to an existing project. I cloned it and committed a local change. I went to push and got the ERROR: Repository not found. error message.

The person who added me to the project gave me read-only access to the repository. A change by them and I was able to push.

like image 89
JT. Avatar answered Oct 22 '22 23:10

JT.