【发布时间】:2018-08-08 15:29:04
【问题描述】:
我需要运行这个命令:
git pull "https://user:password@bitbucket.com/user/repo.git" master
我的问题,密码包含 @ 字符,我以如下错误结束:“找不到主机 asd@bitbucket.com”,其中“asd”是密码的最后一部分。
我怎样才能解决这个问题?
注意:我知道这种方法的安全问题。
【问题讨论】:
我需要运行这个命令:
git pull "https://user:password@bitbucket.com/user/repo.git" master
我的问题,密码包含 @ 字符,我以如下错误结束:“找不到主机 asd@bitbucket.com”,其中“asd”是密码的最后一部分。
我怎样才能解决这个问题?
注意:我知道这种方法的安全问题。
【问题讨论】:
尝试像这样%40 (Percent-encoding) 编码@-symbol
【讨论】: