Reputation: 29
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.
Upvotes: 3
Views: 5569
Reputation: 3
In my company we use GitLab and GitHub, so we need to have separate git configs: .gitconfig-gitlab
and .gitconfig-github
.
.gitconfig:
[includeIf "gitdir:C:/GIT/gitlab/"]
path = .gitconfig-gitlab
[includeIf "gitdir:C:/GIT/github/"]
path = .gitconfig-gitlab
I just entered gitlab twice, so I needed to update to: path = .gitconfig-github
.
Hope this helps someone.
Upvotes: 0
Reputation: 4885
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:
Here is a precise description how you can clone a repisitory on GitHub.
Upvotes: 1