如何从 git-svn 迁移到 gitolite 并保留历史记录

发布于 2024-12-23 16:37:50 字数 164 浏览 7 评论 0原文

我们一直在使用 SVN,开发人员也慢慢迁移到 git-svn。现在我们已经准备好彻底转向 git(使用 gitolite)。我不知道如何将我们的存储库迁移到 gitolite 并维护历史记录。我不知道是否应该尝试直接转换 svn 存储库或使用本地 git-svn 副本并推送它。

最好的方法是什么?

We have been using SVN and slowly the developers have been migrating to git-svn. Now we're ready to make the plunge and completely move to git (using gitolite). I am not sure how to migrate our repository into gitolite and maintain history. I don't know if I should try to convert the svn repo directly or use my local git-svn copy and push that.

What's the best approach?

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

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

发布评论

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

评论(2

月寒剑心 2024-12-30 16:37:50

我建议使用 SubGit 将您的 Subversion 存储库转换为 Git。
以下单个命令应该足以执行翻译:

$ subgit install svn_repos

之后,您将在 svn_repos/.git 中获得 Git 存储库,或在 svn_repos/git/ 中获得多个 Git 存储库(以防万一)您在 svn_repos 中保留多个项目)。

然后,您可以继续使用 SubGit 来保留 Subversion 和 Git 访问权限,或者只是将其卸载并仅使用 svn_repos 作为 Git 存储库:

$ subgit uninstall svn_repos

免责声明:我是 SubGit 的开发人员。

I'd recommend to use SubGit to translate your Subversion repositories to Git.
The following single command should be enough to perform translation:

$ subgit install svn_repos

After that you'll get Git repository in svn_repos/.git or multiple Git repositories in svn_repos/git/ (in case you keep multiple projects in svn_repos).

You may then continue to use SubGit to keep both Subversion and Git access or just uninstall it and use svn_repos as a Git repository only:

$ subgit uninstall svn_repos

Disclaimer: I'm a developer of SubGit.

毅然前行 2024-12-30 16:37:50

作为后续,我写了一篇关于从 Svn 迁移到 Gitolite 的简短 HOWTO 博客文章:请参阅 http://blog.subgit.com/from-svn-to-gitolite/

As a follow up I've made a short HOWTO blog post on migrating from Svn to Gitolite: see http://blog.subgit.com/from-svn-to-gitolite/

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