处理git clone命令的非标准SSH端口连接
使用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
使用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