svn2git 迁移 - 标签未被复制
svn2git migration - tags not being copied
我已经使用 svn2git(Debian 上的 运行)尝试将 SVN 存储库迁移到 Git,然后推送到 GitHub:
svn2git https://localhost/svn/test-repository/space-invaders --username user
git remote add origin https://github.com/my-username/space-invaders.git
git push --all
源 SVN 存储库有很多标签:
但是之后,没有标签进入 GitHub:
我看过FAQ,但说实话我不是很懂。标签也没有出现在 gitk
UI 中。
我确实尝试过使用 GitHub's own importer,但这并没有保留任何非常令人沮丧的历史记录。
svn2git
输出:
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
Initialized empty Git repository in /home/user/space-invaders/.git/
Authentication realm: <https://localhost:443> VisualSVN Server
Password for 'user':
Using higher level of URL: https://localhost/svn/test-repository/space-invaders => https://localhost/svn/test-repositoryAuthentication realm: <https://localhost:443> VisualSVN Server
Password for 'user':
r1 = bcfeab442a701895d74113928cbb08bacefc9602 (refs/remotes/svn/trunk)
A thecode
r3 = 2c0b0ea6b3517e461349ac8249ee89fa1df96367 (refs/remotes/svn/trunk)
Found possible branch point: https://localhost/svn/test-repository/space-invaders/trunk => https://localhost/svn/test-repository/space-invaders/tags/1.0.47, 3
Found branch parent: (refs/remotes/svn/tags/1.0.47) 2c0b0ea6b3517e461349ac8249ee89fa1df96367
Following parent with do_switch
Successfully followed parent
r4 = 48ce984471a4343d07c8b079d63641a1da81389b (refs/remotes/svn/tags/1.0.47)
M thecode
r5 = 289433f53f435964559244876638de2fa973e4a3 (refs/remotes/svn/trunk)
Found possible branch point: https://localhost/svn/test-repository/space-invaders/trunk => https://localhost/svn/test-repository/space-invaders/branches/branch_2.0.20_bleh, 5
Found branch parent: (refs/remotes/svn/branch_2.0.20_bleh) 289433f53f435964559244876638de2fa973e4a3
Following parent with do_switch
Successfully followed parent
r6 = 9dff5da18bdd734e50ec187a314d1c61fad8b41c (refs/remotes/svn/branch_2.0.20_bleh)
M thecode
r7 = bc1495b49c729cf789d896847ba7b4b6b55e01f1 (refs/remotes/svn/branch_2.0.20_bleh)
M thecode
r8 = d73dc60e8518c1695e2a6d3f0e10d11bfdbfd1bd (refs/remotes/svn/trunk)
Found possible branch point: https://localhost/svn/test-repository/space-invaders/trunk => https://localhost/svn/test-repository/space-invaders/tags/2.0.24, 8
Found branch parent: (refs/remotes/svn/tags/2.0.24) d73dc60e8518c1695e2a6d3f0e10d11bfdbfd1bd
Following parent with do_switch
Successfully followed parent
r9 = 491aa2e3f1a64f032ebdd5e76577302ebdfdbabf (refs/remotes/svn/tags/2.0.24)
Checked out HEAD:
https://localhost/svn/test-repository/space-invaders/trunk r8
- 你的 repo 有 non-standard 标签布局(即使是肮脏的截图也可见),但你使用标准 SVN-layout
的 command-line
- 为您的存储库构建一个真正的树“计划”
- 仔细阅读 svn2git 自述文件
- 定义您的案例所需的一切 选项和选项的值
- 重复导出,检查(可能的)错误
- 根据需要重复第 5 页
- 玩得开心
svn2git
工作正常 - 当我 运行 git tag
在本地存储库 svn2git
上生成时我可以看到它。
但是 git push --all
只推送 b运行ches,而不是标签 - 我还需要 运行 git push --tags
。
之后标签显示正确。
我已经使用 svn2git(Debian 上的 运行)尝试将 SVN 存储库迁移到 Git,然后推送到 GitHub:
svn2git https://localhost/svn/test-repository/space-invaders --username user
git remote add origin https://github.com/my-username/space-invaders.git
git push --all
源 SVN 存储库有很多标签:
但是之后,没有标签进入 GitHub:
我看过FAQ,但说实话我不是很懂。标签也没有出现在 gitk
UI 中。
我确实尝试过使用 GitHub's own importer,但这并没有保留任何非常令人沮丧的历史记录。
svn2git
输出:
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
Initialized empty Git repository in /home/user/space-invaders/.git/
Authentication realm: <https://localhost:443> VisualSVN Server
Password for 'user':
Using higher level of URL: https://localhost/svn/test-repository/space-invaders => https://localhost/svn/test-repositoryAuthentication realm: <https://localhost:443> VisualSVN Server
Password for 'user':
r1 = bcfeab442a701895d74113928cbb08bacefc9602 (refs/remotes/svn/trunk)
A thecode
r3 = 2c0b0ea6b3517e461349ac8249ee89fa1df96367 (refs/remotes/svn/trunk)
Found possible branch point: https://localhost/svn/test-repository/space-invaders/trunk => https://localhost/svn/test-repository/space-invaders/tags/1.0.47, 3
Found branch parent: (refs/remotes/svn/tags/1.0.47) 2c0b0ea6b3517e461349ac8249ee89fa1df96367
Following parent with do_switch
Successfully followed parent
r4 = 48ce984471a4343d07c8b079d63641a1da81389b (refs/remotes/svn/tags/1.0.47)
M thecode
r5 = 289433f53f435964559244876638de2fa973e4a3 (refs/remotes/svn/trunk)
Found possible branch point: https://localhost/svn/test-repository/space-invaders/trunk => https://localhost/svn/test-repository/space-invaders/branches/branch_2.0.20_bleh, 5
Found branch parent: (refs/remotes/svn/branch_2.0.20_bleh) 289433f53f435964559244876638de2fa973e4a3
Following parent with do_switch
Successfully followed parent
r6 = 9dff5da18bdd734e50ec187a314d1c61fad8b41c (refs/remotes/svn/branch_2.0.20_bleh)
M thecode
r7 = bc1495b49c729cf789d896847ba7b4b6b55e01f1 (refs/remotes/svn/branch_2.0.20_bleh)
M thecode
r8 = d73dc60e8518c1695e2a6d3f0e10d11bfdbfd1bd (refs/remotes/svn/trunk)
Found possible branch point: https://localhost/svn/test-repository/space-invaders/trunk => https://localhost/svn/test-repository/space-invaders/tags/2.0.24, 8
Found branch parent: (refs/remotes/svn/tags/2.0.24) d73dc60e8518c1695e2a6d3f0e10d11bfdbfd1bd
Following parent with do_switch
Successfully followed parent
r9 = 491aa2e3f1a64f032ebdd5e76577302ebdfdbabf (refs/remotes/svn/tags/2.0.24)
Checked out HEAD:
https://localhost/svn/test-repository/space-invaders/trunk r8
- 你的 repo 有 non-standard 标签布局(即使是肮脏的截图也可见),但你使用标准 SVN-layout 的 command-line
- 为您的存储库构建一个真正的树“计划”
- 仔细阅读 svn2git 自述文件
- 定义您的案例所需的一切 选项和选项的值
- 重复导出,检查(可能的)错误
- 根据需要重复第 5 页
- 玩得开心
svn2git
工作正常 - 当我 运行 git tag
在本地存储库 svn2git
上生成时我可以看到它。
但是 git push --all
只推送 b运行ches,而不是标签 - 我还需要 运行 git push --tags
。
之后标签显示正确。