在windows中为msysgit设置openssh端口

Lef*_*ris 4 windows git msysgit

一个简单的问题.我使用msysgit和openSSH作为git客户端.我不想使用其他ssh客户端,如putty.从GIT Bash我已成功连接到我的服务器与ssh -p XXXX到我的服务器.

不幸的是,当我尝试做类似的事情:

git clone git@SERVER:reponame.git 
Run Code Online (Sandbox Code Playgroud)

从Git Bash我得到:

ssh: connect to host SERVER port 22 failed.
Run Code Online (Sandbox Code Playgroud)

如何使用openssh在不同的端口运行msysgit尝试打开的ssh连接?

我知道在linux中这样的东西会出现在/ etc/ssh/ssh_config文件中,但在这种情况下我该如何做呢?提前致谢.

Ale*_*ski 6

git支持以下语法 ssh://

ssh://[user@]host.xz[:port]/path/to/repo.git/
Run Code Online (Sandbox Code Playgroud)

注意那里的端口.