写作时
$ git clone htt://mail1003@localhost:9000/mail1003/board** ,(htt means http)
发生了这个错误!
Initialized empty Git repository in /home1/irteam/board/.git/
Password:
error: couldn't connect to host while accessinghtt://mail1003@localhost:9000/mail1003/board/info/refs** (htt means http)
当我命令这个
$ export GIT_CURL_VERBOSE=1 ,**
结果发生了变化,但仍然出现相同的错误T.T
Initialized empty Git repository in /home1/irteam/board/.git/
Password:
Couldn't find host localhost in the .netrc file; using defaults
About to connect() to localhost port 9000 (#0)
Trying 127.0.0.1... * Connection refused
Trying 127.0.0.1... * Connection refused
couldn't connect to host
Expire cleared
Closing connection #0
Couldn't find host localhost in the .netrc file; using defaults
About to connect() to localhost port 9000 (#0)
Trying 127.0.0.1... * Connection refused
Trying 127.0.0.1... * Connection refused
couldn't connect to host
Expire cleared
Closing connection #0
error: couldn't connect to host while accessing htt://mail1003@local:9000/mail1003/board/info/refs
fatal: HTTP request failed** (htt means http)
任何知道此错误解决方案的人都会帮助我PLZ T.T
答案 0 :(得分:0)
您传递给git克隆的URL指向您从本地设备克隆存储库,从端口9000中运行的服务。因此,curl尝试连接到该端口并失败。正如您在卷曲日志中看到的,有很多“连接被拒绝”错误。
所以问题是你有错误的网址,或者你需要启动服务或检查它是否被某些方式阻止。