My password has @ in it and the command is failing. what's the alternative? git clone https://username:password@github.#########XXXXX####.com
Asked
Active
Viewed 362 times
0
-
~git clone git clone https://$EID:$SSO_PWD@github.XXXXXXXX.com – kashyap May 20 '20 at 19:52
-
You *must* URL-encode password characters that would otherwise trigger URL stuff, i.e., replace `@` with `%40`, replace `:` with `%3a`, and replace `%` with `%25`. – torek May 20 '20 at 20:10
-
https://stackoverflow.com/search?q=%5Bgit%5D+escape+password – phd May 20 '20 at 20:36
1 Answers
1
I would use the ssh+git protocol.
The other alternative is to get a token from github and use that instead of user/pw.
putting passwords directly on the command line is a bad practice.

Adam Dymitruk
- 124,556
- 26
- 146
- 141