Why am I not able to clone a private repository in which I am a collaborator

Viewed 4807

I am a collaborator in one the private github repository. I am able to fork it but when I try to clone it onto my system, it shows a pop up box asking for credentials and even if I enter correct credentials I can't login.

Is it just me or github actually doesn't allow cloning of private repo even if I am a collaborator in it?

2 Answers

You can clone it over HTTPS

git clone https://github.com/privateRepo/privateRepo.git

The prompt will ask for your username password/Authentication Token.

or

git clone https://username:token@github.com/user/repo

Note :- Support for password authentication was removed [link]. Please use a personal access token instead of password if it does not work.

Related