問題
通過222
端口克隆git@localhost:wzy/test.git
出現(xiàn)問題:
Cloning into 'test'...
ssh: connect to host localhost port 22: Connection refused
fatal: Could not read from remote repository.
方法1
Http 方法
git clone http://localhost:3000/wzy/test.git
其中 3000 是Http端口號文章來源:http://www.zghlxwxcb.cn/news/detail-731820.html
方法2
SSH 方法文章來源地址http://www.zghlxwxcb.cn/news/detail-731820.html
git clone ssh://git@localhost:222/wzy/test.git
到了這里,關(guān)于Git clone 指定端口的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!