【发布时间】:2017-06-24 07:25:57
【问题描述】:
借口:
我看到了这个: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 ...
我知道逃逸@ char,但是:
我试试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 -
@TimBiegeleisen 我明白了,但那是
http.proxy参数,我尝试%40并且不适用于url参数。 -
@TimBiegeleisen As 你可以看到我关于尝试
p%4055的问题的结尾,但不起作用! -
你使用的是什么版本的 Git? (本地和远程服务器上)