简体   繁体   English

Mobaxterm Git克隆/推送终止,无需克隆或更新远程回购

[英]Mobaxterm Git clone/push terminates without cloning or updating remote repo

I'm using git on Mobaxterm to clone a remote repo from my enterprise bitbucket server. 我在Mobaxterm上使用git从企业bitbucket服务器克隆远程回购。 I've been doing this all the time using Portable Mobaxterm V10.5, Default Moba Git Plugin ( Git version 2.1.4) on my Windows 7 PC. 我一直在Windows 7 PC上使用Portable Mobaxterm V10.5,默认Moba Git插件(Git版本2.1.4)进行此操作。 However I moved all my moba files ( root and home folders) to a new windows 10 PC. 但是,我将所有moba文件(根文件夹和主文件夹)移动到了新的Windows 10 PC。 I generated a new pair of keys and updated public key in my account > ssh keys. 我在帐户> ssh密钥中生成了一对新密钥并更新了公共密钥。

Now when I try a git clone , it terminates after saying "Cloning into 'repoName'..." and clones nothing except an empty .git folder (no ref/objects). 现在,当我尝试git clone时,它在说出“克隆到'repoName'...”后终止,并且除了空的.git文件夹(没有ref / objects)之外,什么都不会克隆。 Doesn't count or write remote objects, there's no error description as well. 不计算或写入远程对象,也没有错误描述。 I used the same keys in git bash and it works fine. 我在git bash中使用了相同的键,效果很好。

Any help appreciated. 任何帮助表示赞赏。

Regards, Abhishek 问候,Abhishek

You first need to check if your ssh key allows you to contact the remote server: 您首先需要检查您的ssh密钥是否允许您联系远程服务器:

ssh -Tv remoteUSer@remoteServer

Only once that step passes, can you try and clone anything. 只有经过这一步,您才能尝试克隆任何东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM