我想通过添加用户名和密码来克隆git存储库,如下所示进行身份验证:
https://myUserName:myPassWord@myGitRepositoryAddress/myAuthentificationName/myRepository.git
但我的密码包括@
(像123@asd
(,这导致git存储库url出现问题,我得到了这样的错误:
https://123@myGitRepositoryAddress/myAuthentificationName/myRepository.git
并且第一个CCD_ 3被认为是分离器。
为了在URL中使用@
符号,必须使用百分比编码。@
的百分比代码是%40
。因此,如果你想用用户名user
和密码123@asd
克隆你的回购,你必须使用以下网址:
https://user:123%40asd@myGitRepositoryAddress/myAuthentificationName/myRepository.git