I'm trying to clone a repository the ssh way from github and another form gitlab
I'm on windows EDIT : with Git v 2.29.2.2
I'm getting the following error, which I do not understand from what it is coming from :
$ git clone [email protected]:math-gallou/AI21_TPs.git
Cloning into 'AI21_TPs'...
git: '[email protected]' is not a git command. See 'git --help'.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
So I also tried :
$ git clone "ssh://[email protected]:math-gallou/AI21_TPs.git"
and
$ git clone ssh://[email protected]:math-gallou/AI21_TPs.git
But the same exact error comes out.
When I do the ssh -v [email protected] I can connect with success.
So what did I miss ?
ssh://URLs the syntax is slightly different:git clone ssh://[email protected]/math-gallou/AI21_TPs.git(slash/instead of colon:). See git-scm.com/docs/git-fetch#_git_urls