srcobranza srcobranza - 4 months ago 9x
Linux Question

How to escape '@' (at) symbol when pulling git repository on Linux shell

I'm trying to pull a git repository from command line, specifying username and password inside the command, like this:

git pull

The problem is that my username is an e-mail, so apparently the character '@' need to be escaped, if not, I receive the message:

fatal: repository '' not found

Someone had the same problem and resolved it?


Usually, you can try and percent encode your password, replacing @ with %40

git pull https://username:<yourPasswordwith%40>