Home > Software engineering >  Can't clone public git repositories via https
Can't clone public git repositories via https

Time:01-11

Git: v2.39.0.2

Sadly i can't clone public and private repos via https and i don't know why. Cloning via http works.

I tried git clone https://github.com/espressif/esp-idf.git in my git bash with following output:

Cloning into 'esp-idf'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Does anyone have a hint where i can start debugging the problem? I don't even have an idea where to search.

I reinstalled git but still get the same result.

CodePudding user response:

It seems the https url is automatically replaced with the ssh url. Run git config -l and check if there is any value that contains insteadof.

You can remove or comment out the value to cancel the effect.

  • Related