I had the similar problem and realized that I am mistakenly adding an unnecessary <username>
into the command.
Solution:
We should have or create personal access token. You can refer creating a personal access token link to create one.
And the command should be:
git clone https://<personal_access_token>@github.com/<your account or organization>/<repo>.git
Be careful
I was mistakenly adding an extra <username>
which is not seen in the repository link. We should simply use the repository link which already includes account user name or organization name
.
For a repository link something like this https://github.com/mustafasdet/python.git
, we should simply put personal_access_token
after https://
. And here is the command:
git clone https://ghb_qrghF29zGGmfd9w54hdf56vdnbWo90K82@github.com/mustafasdet/python.git