借口:
我看到这个:Escape @ character in git proxy password
但它是关于http.proxyparam 的,p%4055对我来说关于urlparam不起作用。
我的问题:
我使用 git 版本 1.7.1
我的密码存储库是:p@55
我使用gitlab服务器和centos客户端。
在.git/config文件中,我是这样的:
[remote "origin"]
url = http://user:p@55@domain.com:port/repo.git
Run Code Online (Sandbox Code Playgroud)
但是当我拉它时,给了我这个错误:
error: Couldn't resolve host '55:domain.com' while accessing ...
Run Code Online (Sandbox Code Playgroud)
我知道转义@字符,但是:
我尝试p\@55,给了我这个错误:
fatal: bad config file line 8 in .git/config
Run Code Online (Sandbox Code Playgroud)
我尝试p%4055,给了我这个错误:
error: The requested URL returned error: 401 while accessing ...
Run Code Online (Sandbox Code Playgroud)
我只是将 git 版本从 1.7.1 升级到 2.11.1,这对我有用:
url = http://user:p%4055@domain.com:port/repo.git
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3000 次 |
| 最近记录: |