我用下面的命令將svn repo克隆到git中,執行後,我看到一些虛假的分支。git-svn clone |虛假分支
git svn clone [SVN repo URL] --no-metadata -A authors-transform.txt --stdlayout ~/temp
git branch -a
在SVN創建
*(no branch)
master
remotes/abc-1.3.x
remotes/[email protected]
remotes/[email protected]
remotes/branch_test_script
remotes/tags/modules-1.2
remotes/tags/[email protected]
remotes/tags/[email protected]
remotes/tags/release-1.1
remotes/tags/[email protected]
remotes/tags/[email protected]
remotes/trunk
實際分支爲ABC,branch_test_script,模塊和釋放。 有人可以幫助理解'[email protected]','[email protected]'...'[email protected]'等是什麼?
我們如何擺脫這些虛假分支/他們表示什麼?
感謝,
Gayathri
我真的很難找到這個命名來自哪裏,但它看起來像這些分支是從SVN提交創建的,而SVN提交沒有被svn分支(或標記)引用。像Git中的未提交提交一樣,除了可以恢復提交的分支名稱。 – fork0 2012-07-06 06:54:14
@ fork0:謝謝你的回覆。但我不明白如何不參與提交可以在svn中存在。引用如何丟失?你能分享一下你的想法嗎? – crankparty 2012-07-06 07:32:42
我不知道。也許SVN存儲庫的維護者從來沒有清理過它們(或者SVN根本就沒有這種能力?)。我不是故意說引用丟失了,而是有人剛剛開始提交歷史記錄中的早期點 – fork0 2012-07-06 08:42:25