借口:
我看到了这个:Escape @ character in git proxy password
但它是关于http.proxy
参数的,而p%4055
对于url
参数对我来说不起作用。
我的问题:
我使用git版本1.7.1
我的密码库是:p@55
我使用gitlab
服务器,并在客户端上使用centos
。
在.git/config
文件中,我已经像这样设置:
[remote "origin"]
url = http://user:p@55@domain.com:port/repo.git
但是当我拉它时,出现了这个错误:
error: Couldn't resolve host '55:domain.com' while accessing ...
我知道转义字符@
,但是:
我尝试输入p\@55
,结果出现了错误:
fatal: bad config file line 8 in .git/config
我尝试了 p%4055
,出现了以下错误:
error: The requested URL returned error: 401 while accessing ...
http://user:p%4055@domain.com:port/repo.git
。 - Tim Biegeleisenhttp.proxy
参数,我尝试使用%40
作为url
参数却不起作用。 - Nabi K.A.Z.ssh-agent
)呢? - zigarn