我使用
但之后,沒有任何標簽進入 GitHub:

我看過常見問題解答,但說實話我不太明白。標簽也沒有顯示在gitkUI 中。
我確實嘗試過使用GitHub 自己的 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
uj5u.com熱心網友回復:
- 您的 repo 有標簽的非標準布局(即使是臟螢屏截圖也可見),但是您使用了標準 SVN 布局的命令列
- 為您的回購建立一個真正的樹“計劃”
- 仔細閱讀 svn2git 自述檔案
- 定義您的案例選項和選項值所需的所有內容
- 重復匯出,檢查(可能的)錯誤
- 根據需要重復第 5 頁
- 玩得開心
uj5u.com熱心網友回復:
svn2gitgit tag作業正常 - 當我在生成的本地存盤庫上運行時,我可以看到它svn2git。
但是 gitpush --all只推送分支,而不是標簽——我也需要運行git push --tags。
在此之后,標簽顯示正確。
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/485404.html
