使用非标准SSH端口进行Git Clone

使用git clone命令clone项目时,如果repository的SSH端口不是标准22端口时(例如,SSH tunnel模式,等等),可以使用如下命令: git clone ssh://git@hostname:port/.../xxx.git 举例如下: git clone ssh://git@10.137.20.113:2222/root/test.git

October 8, 2022 · YanceyAn