windows服务器上的ubuntu克隆git存储库

windows服务器上的ubuntu克隆git存储库,git,ubuntu,ssh,msysgit,Git,Ubuntu,Ssh,Msysgit,使用windows 2008 R2 64位,我安装了msysgit和cygwin。服务器有一个公共ip。我的应用程序的源代码在 C:\repos\eCat\Raw.git 我希望将该原始文件夹设置为存储库,因此使用git bash我输入了以下命令(在原始文件夹中): 我得到以下输出: Initialized Empty Git repository in c:/repos/eCat/Raw.git/ 我安装了bitvise ssh服务器,并分配了一台windows本地服务器,其限制仅限于re

使用windows 2008 R2 64位,我安装了msysgitcygwin。服务器有一个公共ip。我的应用程序的源代码在

C:\repos\eCat\Raw.git
我希望将该原始文件夹设置为存储库,因此使用git bash我输入了以下命令(在原始文件夹中):

我得到以下输出:

Initialized Empty Git repository in c:/repos/eCat/Raw.git/
我安装了bitvise ssh服务器,并分配了一台windows本地服务器,其限制仅限于repos文件夹,并测试了从ubuntu到windows服务器的ssh连接,该连接按预期工作

现在我想在我的ubuntu设备上从windows服务器远程下载源代码,然后提交并将更改推回到服务器

我不知道应该在终端中运行什么来提取源代码,比如:

git clone ssh://username@remoteServerIp:path/to/source/code???
我对使用git还很陌生,我已经学习了一个关于git的教程,但现在我被卡住了。任何形式的解释或帮助都将不胜感激

提前谢谢

编辑我尝试了以下方法(不确定是否正确)

并得到以下错误:

'sh' is not recognized as an internal or external command,
operable program or batch file.
fatal: The remote end hung up unexpectedly

cygwin不是应该在windows上处理sh文件吗?

@Menefee查看帖子,我已经更新了。很接近了。消息“Initialized Empty Git repository”表示没有本地repo。你必须先克隆一个。尝试运行“git克隆”git://username@remoteip/repos/eCat/Raw.git“你确定你键入的是
ssh
而不是
sh
?@Kangcor当我键入ssh时,它说克隆到Raw。。。然后它要求输入服务器密码。所以是的,我很确定。我放置源路径的方式正确吗?也许可以尝试使用绝对路径,而不是/~,但我认为这不是问题所在
git clone ssh://git@79.143.84.170/~/c/repos/eCat/Raw
'sh' is not recognized as an internal or external command,
operable program or batch file.
fatal: The remote end hung up unexpectedly