当前位置:   article > 正文

Git clone 指定端口

git clone 指定端口

问题

通过222端口克隆git@localhost:wzy/test.git

出现问题:

Cloning into 'test'...
ssh: connect to host localhost port 22: Connection refused
fatal: Could not read from remote repository.
  • 1
  • 2
  • 3

方法1

Http 方法

git clone http://localhost:3000/wzy/test.git
  • 1

其中 3000 是Http端口号

方法2

SSH 方法

git clone ssh://git@localhost:222/wzy/test.git
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/734106
推荐阅读
相关标签
  

闽ICP备14008679号