来自SSH Repository的Git Clone

时间:2010-06-03 13:59:09

标签: git git-svn

我曾经能够从我的个人git存储库中克隆,但现在我似乎遇到了错误。

user:dev.site.com mikesilvis$ git clone { my ssh directory }
server@ipaddress's password: 

remote: Counting objects: 3622, done.
remote: Compressing objects: 100% (2718/2718), done.
error: git upload-pack: git-pack-objects died with error.  
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed

当我将文件推送到存储库时,它似乎正在工作。

3 个答案:

答案 0 :(得分:1)

我最终只是在服务器上创建了一个新的远程存储库,并重新将所有本地信息推送到它。

但仍然没有找到我的问题的答案。

答案 1 :(得分:0)

如果推送有效,您可以尝试模仿GitHub issue并执行:

git push origin --all

,看看是否能解决克隆问题。

答案 2 :(得分:0)

不是修复git clone的答案,但是,如果你需要克隆这些文件,你可以保存存储库的本地副本并从中克隆。

e.g。我在用户git上有myrepo.git,当我git clone git @ localhost:myrepo.git我得到了那个错误

cp /home/git/repositories/myrepo.git ~
git clone ~/myrepo.git
rm -rf ~/myrepo.git

你应该有一个myrepo文件夹,里面有你需要的文件