如何使用Git迁移SVN仓库

发布于 2024-08-12 12:48:42 字数 155 浏览 4 评论 0原文

有人计划移动我正在处理的颠覆存储库(8000+ 次提交)。

有没有办法在迁移完成后使用 git-svn 重放旧位置的最后 20 次提交?

(不仅是我自己的提交,还有其他团队成员)

额外问题:如何将多个 svn 存储库添加到我的 git 本地副本?

Somebody is planning to move the subversion repository I work on (8000+ commits).

Is there a way to use git-svn to replay the last, say, 20 commits from the old location once the migration is finished?

(not only my own commits, but also other team members)

Bonus question: How do I add multiple svn repositories to my git local copy?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

只涨不跌 2024-08-19 12:48:42

我不确定 git svn 是适合这项工作的工具。文档包含讨论 --commit-url 选项时的声明:

提交此 SVN URL(完整路径)。这样做的目的是,如果用户稍后获得对备用传输方法(例如 svn+ssh)的访问权限,则可以重用使用一种传输方法(例如 svn:// 或 http:// 用于匿名读取)创建的现有 git svn 存储库: // 或 https://) 用于提交。

强烈建议不要将此选项用于任何其他目的(不要询问)。

我不确定该警告具体适用于什么,但它可能适用于您所描述的“桥梁”情况。如果您决定继续使用 git-svn,那么谨慎行事可能是明智之举。

I'm not sure that git svn is the right tool for that job. The documentation contains the statement when discussing the --commit-url option:

Commit to this SVN URL (the full path). This is intended to allow existing git svn repositories created with one transport method (e.g. svn:// or http:// for anonymous read) to be reused if a user is later given access to an alternate transport method (e.g. svn+ssh:// or https://) for commit.

Using this option for any other purpose (don't ask) is very strongly discouraged.

I'm not sure precisely what that warning applies to, but it may apply to the "bridge" situation you are describing. If you decide to proceed with git-svn, you may be wise to proceed with caution.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文