【问题标题】:migrate scm-manager- svn repo to git repo's branch迁移 scm-manager-svn repo 到 git repo 的分支
【发布时间】:2017-08-30 12:14:42
【问题描述】:

我正在使用 scm-manager;

我正在使用 SVN 和 git。我需要将 SVN 存储库迁移到 git 存储库的分支。

例子:

SVN 仓库名称:test-3.2

Git 存储库名称:test-3.0

在这个 git-test-3.0 中,我需要一个分支作为 test-3.2。在该 SVN 存储库下 test-3.2 将连同其所有提交历史一起迁移。

如何做到这一点?

【问题讨论】:

    标签: git svn version-control scmmanager


    【解决方案1】:

    你可以这样做:

       $ git svn clone http://svn/repo/here/trunk
    

    你有更多的细节在这里:How to migrate SVN repository with history to a new Git repository?

    【讨论】:

    • 这将创建一个单独的仓库;我需要在现有的 git repo 下以新分支的形式使用它
    • @soundararajan.c 您还可以将两个单独的 git repo 合并在一起,同时保留所有历史记录。
    猜你喜欢
    • 2011-05-26
    • 2021-07-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-16
    • 2020-09-19
    • 2019-07-29
    • 2021-09-19
    相关资源
    最近更新 更多