I am trying to clone a private repo but it says Repository not found?

Viewed 268

It says,

git clone https://github.com/username/component-1-rajeshbasnet01.git
Cloning into 'component-1-rajeshbasnet01'...
remote: Repository not found.
fatal: repository 'https://github.com/username/component-1-rajeshbasnet01.git/' not found

I have tried setting up username, email, password.

1 Answers

Your GitHub link doesn‘t exist (404 Not Found). This mean, you don‘t have access to the repository, or the URL is not correct.

To become access, you must contact the private repository owner, to invite you as a collaborator, that you become access to clone abd change the code.

The safest way to clone a repository is to copy the URL from GitHub‘s Code Button:

enter image description here

Here is a precise description how you can clone a repisitory on GitHub.

Related