I want to clone a git repo from Github with the command
git clone [email protected]:rgov/Thunderbolt3Unblocker.git
but I get
Cloning into 'Thunderbolt3Unblocker'...
fatal: unable to access 'https://github.com:rgov/Thunderbolt3Unblocker.git/': Port number ended with 'r'
It seem git interprets username "rgov" as port number?
The git version is 2.27.0
git clone https://username:[email protected]/rgov/Thunderbolt3Unblocker.gitgit clone ssh://[email protected]/rgov/Thunderbolt3Unblocker.gitto see if there’s an improved error message? Maybe your Git doesn’t support SSH?git config -l --show-origin | grep insteadofas a code block. Also you should not put passwords or other secrets in the URL.git config -l. I checked, because I also write itinsteadOf.