Yaron
Yaron

Reputation: 620

Cloned directly from repo...get error when pushing

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

Answers (4)

Rajesh Kumar Raj
Rajesh Kumar Raj

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,

  1. Login into GitHub website as administrator
  2. Click on the "Your Profile" link from the Icon menu in top right corner
  3. Click on your Organization Icon displayed on the left hand side
  4. Click the "People" tab.
  5. Click on the corresponding user link
  6. Change Read Privilege to Write Privilege

Upvotes: 0

RK1414
RK1414

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

Michael Durrant
Michael Durrant

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

Yaron
Yaron

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

Related Questions