我已經安裝了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