Reputation: 620
Cloned a repo, commited, and when I go to push I get an error:
remote: Repository not found.
fatal: repository 'https://github.com/USER/REPO.git/' not found
Anyone have an idea what might be causing this? I've checked the remote and it is correct (I cloned and didn't touch it after).
Upvotes: 2
Views: 2234
Reputation: 484
In my case it was always a permission issue which led to this error. Here are the steps to add permission to a user,
Upvotes: 0
Reputation: 111
I encountered a similar issue when cloning the repo. Below is the error message
"ERROR: Repository not found. fatal: Could not read from remote repository.
Please make sure you have the correct access rights"
I changed the clone URL to https and it worked for me.
Upvotes: 1
Reputation: 96484
In case you are trying to fork someone else's repo:
fork it (in github, using a browser) and then go to your github account and the fork. Clone that (use the button in browser) and git clone that repo.
Upvotes: 1
Reputation: 620
Tried to add a file to the repo directly from Github (via the add file button) and was told I didn't have write access...problem solved!
Upvotes: 1