-1

I'm trying to clone a private repo that is not on my github account, but I do have access to. The commands I have used is

 git clone https://username:[email protected]/path/to/repo.git
 git clone https://username:[email protected]/path/to/repo.git

I get invalid username or password, but if I do

git clone https://github.com/path/to/repo.git 

And enter the same username and password it works fine. What is the correct syntax?

Angie
  • 103
  • 1
  • 9

1 Answers1

0
git clone https://username:[email protected]/path/to/repo.git

This is the correct syntax. Maybe you are entering wrong credentials. you may refer to this question here.

Community
  • 1
  • 1
Pankaj Singhal
  • 15,283
  • 9
  • 47
  • 86