Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't clone private Github repositories over HTTPS

Tags:

git

github

I have problems cloning private GitHub Repositories over HTTPS. If i try to clone my repository using:

git clone https://github.com/{username}/{repository}

i get the error:

fatal: remote error: Repository not found

when i try to enter my credentials in the request like this:

git clone https://{username}@github.com/{username}/{repository}

I get the error:

fatal: Unable to look up {username}@github.com (port 9418)

Cloning over ssh works without. Cloning public repositories also works over https. Does anybody know what i could do? I'm using windows 10 and git for windows version 2.14.13

like image 428
Nils Schlüter Avatar asked Aug 04 '26 15:08

Nils Schlüter


1 Answers

You can clone your repository with:

git clone https://[email protected]/username/repo_name

It can also help to check your git configuration with:

git config -l
like image 182
Ortomala Lokni Avatar answered Aug 07 '26 05:08

Ortomala Lokni



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!