Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Providing username with email when using Git clone

Tags:

git

ssh

login

I'd like to clone a repository that uses ssh. To do that I need to enter my username. I've tried to do this based on How to provide username and password when run "git clone [email protected]"?. However, my username has @ in it, which seems to mess with the command.

My current command without username entered is sudo git clone ssh://[email protected]/y/. Now I want to do the same, but with my username [email protected]. How do I do that?

If I try to write sudo git clone [email protected]@git.x/y/ I get the error repository [email protected]@git.x/y/ does not exist

like image 629
pir Avatar asked Mar 30 '15 20:03

pir


1 Answers

Url-encode your username, replacing "@" with "%40".

like image 166
joemfb Avatar answered Oct 14 '22 09:10

joemfb