需要已经迁移的SVN-GIT的历史记录 [英] Need history of already migrated SVN-GIT

查看:251
本文介绍了需要已经迁移的SVN-GIT的历史记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经手动迁移了SVN-GIT,方法是将文件夹复制到另一个git文件夹,然后将其推入bitbucket.现在我需要svn的树干历史.我现在可以得到吗?

I've migrated my SVN-GIT manually by just copying the folders to another git folder and pushing them to bitbucket. now i need the history of trunk from svn. can i get that now ?

如果可以的话,我可以删除当前的后备箱,然后再移回去.我们只担心后备箱. bitbucket的主干中没有提交.

If possible can i delete present trunk and move it back again. we are worried only about the trunk. There are no commits in trunk on bitbucket.

推荐答案

只需执行适当的SVN到git迁移(最好使用KDE svn2git工具,而不要使用诸如nirvdrum svn2gitgit-svn之类的其他工具)推理请参见我的答案,例如),然后强制将其推入BitBucket,它将替换当前在BitBucket中的内容.

Just do a proper SVN to git migration (best with the KDE svn2git tool, not with any other like nirvdrum svn2git or git-svn, for reasoning see e. g. my answer at What dependencies does running "git svn" need to have installed in order to run correctly?), then force-push to BitBucket, that will replace what is currently in BitBucket.

拥有此克隆并可能基于该分支创建本地分支的任何人都必须像往常一样使用从上游还原中恢复"来手动进行基准化.

Anyone that had this cloned and maybe made local branches based on it has to manually rebase of course like always with "Recovering from upstream rebase".

这篇关于需要已经迁移的SVN-GIT的历史记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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