git - 带有提交历史的 SVN 到 GIT 迁移(使用 git svn)
问题描述
我需要将存储库从 SVN 迁移到 GIT(Bitbiucket) 以及提交历史记录和分支。阅读并探索了几篇文章,但在尝试来自以下 url 的以下命令时卡住了: https ://davidzych.com/migrating-from-svn-to-git/
Step 1) git svn init http://url.to.svn/ --prefix svn
Step 2) git svn init http://url.to.svn/ -T Trunk -B Branches -t Tags
Step 3) git config svn.authorsfile ../authors.txt
Step 4) git svn fetch [Get stuck at this step and it doesn't move forward after a specific revision]
Step 5) git branch -a
Step 6) git tag -a -m "Migrating SVN tag" tag-name refs/tags/tag-name
Step 7) git remote add newrepo https://url.to.git/repo.git
Step 8) git push --all newrepo and git push --tags newrepo
我还尝试了以下网址中的步骤。 https://docs.microsoft.com/en-us/azure/devops/repos/git/create-new-repo?view=azure-devops
请建议是否有任何其他更好的方法/步骤来进行此迁移。
解决方案
Bitbucket 有一个特殊的插件,称为 SVN Mirror。
推荐阅读
- ruby-on-rails - 在 Rails 6 API 中将图像附加到模型
- python-3.x - 当 x 轴值随实时数据增加时,使用 matplotlib 条形图动态更改绘图大小
- nstableview - 选择状态关闭时,NSTableRowView 没有响应 setNeedsDisplay
- java - 我们如何在 Android Java 的 RecyclerView 中检索 uid 用户名和 uid 用户子值?
- java - 如何让带有平均值答案的窗口弹出?
- javascript - 比较两个对象数组并将数据推送到新数组中
- javascript - 我对 JavaScript `this` 的理解正确吗?
- mariadb - MariaDB 10.5 sys 架构无法安装
- sql-server - sqlalchemy.orm.exc.UnmappedInstanceError:类“builtins.dict”未映射并使用棉花糖-sqlalchemy
- shopify - Shopify 报告中的订单计数不匹配