0

我安装了 Subgit,因为我们的团队想要将现有的 SVN 存储库切换到 git。据我所知,该结构非常标准:

http://svn.local/project1/trunk<trunk

http://svn.local/project1/branches<branches

http://svn.local/project1/tags<tags

我的问题是导入的 git repo 不包含分支。这是我进行导入的方式:

CD-d 到 ~/git 并运行subgit configure --svn-url http://svn.local/project1/trunk project1.
该命令的结果是:

    CONFIGURATION SUCCESSFUL

    To complete SubGit installation do the following:

    1) Adjust Subversion to Git branches mapping if necessary:
/home/az/git/project1/subgit/config <br>

    2) Define at least one Subversion credentials in default SubGit passwd file at:
    /home/az/git/project1/subgit/passwd
   OR configure SSH or SSL credentials in the [auth] section of:
    /home/az/git/project1/subgit/config <br>

    3) Optionally, add custom authors mapping to the authors.txt file(s) at:
/home/az/git/project1/subgit/authors.txt

    4) Run SubGit 'install' command:
    subgit install project1


我做了第 2 步 - 为 SVN 服务器添加了有效凭据。如果重要的话,它是启用 LDAP 的,但是凭据经过验证并且绝对有效。然后我运行subgit install project1
输出:

SubGit version 2.0.3 ('Patrick') build #2796

Translating Subversion revisions to Git commits...

Subversion revisions translated: 890.
Total time: 12 seconds.

INSTALLATION SUCCESSFUL

所以我可以看到它从 SVN 存储库中提取了一些历史记录。但是,在文件夹git branch -a内执行project1不会返回任何内容。git fetch说我必须指定一个远程存储库,但我不确定我必须放在那里。我该如何解决这个问题,所以我终于可以让其他人从project1repo 中克隆并查看代码和历史记录?

4

0 回答 0