使用git clone命令clone项目时,如果repository的SSH端口不是标准22端口时(例如,SSH tunnel模式,等等),可以使用如下命令:
git clone
clone
repository
SSH
22
SSH tunnel
git clone ssh://git@hostname:port/.../xxx.git
举例如下:
git clone ssh://git@10.107.200.113:2222/root/test.git
本文分享自 作者个人站点/博客 前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文参与 腾讯云自媒体分享计划 ,欢迎热爱写作的你一起参与!