SVN2Git对象引用错误 [英] SVN2Git object reference error

查看:184
本文介绍了SVN2Git对象引用错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题: Windows中的Ubunut VM迁移; Windows有一个死亡的蓝屏; Windows重新启动;迁移已损坏!

 〜/文件夹$ svn2git --rebase 
错误:refs / remotes / svn / some_branch不指向有效的对象!
致命:git cat-file 81974ef70e6b9dba85295bf7341dd6808c03250d:坏文件
cat-file commit 81974ef70e6b9dba85295bf7341dd6808c03250d:命令返回错误:128

命令失败:
git svn fetch

我已经尝试解决我在这些问题中提到的问题:



不幸的是,目前为止还没有任何帮助。

任何人都有线索如何解决这个问题?这个迁移已经花了2周,我不想再次开始。

解决方案有pleny工具称为 svn2git ,最好的一个是来自 https的KDE。 ://github.com/svn-all-fast-export/svn2git 。从你的问题我得出结论,你没有使用那个,但是基于 git-svn 的那个。我强烈建议使用 svn2git 工具。这是我所知道的最好的方式,它可以很灵活地处理你的规则文件。



整个移植过程花了你2周多已经很可能会在几个小时内完成,因为它非常快速。



如果您对存储库的历史记录不是100%的话, svneverever 来自 http://blog.hartwork.org/?p=763 是一个很好的工具,用于在将SVN存储库迁移到Git时调查SVN存储库的历史记录。


My problem: Migration by an Ubunut VM in Windows; Windows had a blue screen of death; Windows restarted; the migration was damaged!

~/folder$ svn2git --rebase
error: refs/remotes/svn/some_branch does not point to a valid object!
fatal: git cat-file 81974ef70e6b9dba85295bf7341dd6808c03250d: bad file
cat-file commit 81974ef70e6b9dba85295bf7341dd6808c03250d: command returned error: 128

command failed:
git svn fetch

I already tried to fix my problem like mentioned in these answers:

Unfortunately none helped me so far.

Anyone have a clue how to fix that? This migration already took +2 weeks and I don't wanna start again.

解决方案

There are pleny tools called svn2git, the probably best one is the KDE one from https://github.com/svn-all-fast-export/svn2git. From your question I conclude that you are not using that one, but the one that is based on git-svn. I strongly recommend using that svn2git tool. It is the best I know available out there and it is very flexible in what you can do with its rules files.

Also the whole migration that took you more than 2 weeks already will most probably be finished in a few hours as it is blazingly fast.

If you are not 100% about the history of your repository, svneverever from http://blog.hartwork.org/?p=763 is a great tool to investigate the history of an SVN repository when migrating it to Git.

这篇关于SVN2Git对象引用错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆