在Git中,当主机使用其他SSH端口时,如何添加远程源服务器?
git remote add origin ssh://user@host/srv/git/example
您可以这样做:
git remote add origin ssh://user@host:1234/srv/git/example
1234 是正在使用的ssh端口
1234
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
点击生成二维码
我来说两句