我想通过添加用户名和密码来克隆git存储库,如下所示:
https://myUserName:myPassWord@myGitRepositoryAddress/myAuthentificationName/myRepository.git但是我的密码包括@ (如123@asd),这会在git仓库url中引起问题,我得到的错误如下:
https://123@myGitRepositoryAddress/myAuthentificationName/myRepository.git首先考虑@作为分隔符。
发布于 2020-03-24 18:59:34
为了在你的网址中使用@符号,你必须使用percent-encoding。@的百分比代码是%40。因此,如果要使用用户名user和密码123@asd克隆存储库,则必须使用以下url:
https://user:123%40asd@myGitRepositoryAddress/myAuthentificationName/myRepository.githttps://stackoverflow.com/questions/60826661
复制相似问题