主机Git仓库通过端口80
问题描述:
我已经安装了GitStack适用于Windows,它说我必须用git clone [ip/domain]/myproject.git
主机Git仓库通过端口80
不过,我在9418端口被阻止防火墙环境。港口443和22也似乎被阻止。我希望能够获得许可,尽快开放它们。
但是与此同时,有没有一种方法可以利用端口80?甚至可能在通过端口80传输git协议的特定url上设置网站?
我真的不知道为什么Git有自动使用443和9418,但不是端口80的选项?
这样,我的网络上的某个人可以连接到该网址,它只是有点代理git协议?
我试过(表示端口被*):
curl http://[myip]:9418
exit code (7) no error.
我使用下面的尝试,但我不认为443端口的工作:
git config --global url."https://".insteadOf git://
我甚至不能用端口9418连接到我自己的电脑这个网络上:
curl http://127.0.0.1:9418 -v
* About to connect() to 127.0.0.1 port 9418 (#0)
* Trying 127.0.0.1...
* Adding handle: conn: 0x22e02a8
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x22e02a8) send_pipe: 1, recv_pipe: 0
* Connection refused
* Failed connect to 127.0.0.1:9418; No error
* Closing connection 0
curl: (7) Failed connect to 127.0.0.1:9418; No error
EDITTTTT:O型ķ所以事实证明,如果你使用git克隆http://[IP]:80/project.git它会利用端口80
答
事实证明,如果你使用git clone http://[IP]:80/project.git
它会利用端口80。我想我试图使用域,所以它不是解决IP,我认为这是因为端口80不工作只git:/ /(9418)或SSH(22)或HTTPS(443)。