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:passwordgit@github.com/path/to/repo.git
git clone https://username:password@github.com/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?