[英]Migrating a single branch from SVN to Git
我的舊SVN儲存庫中有5個分支,我只想將一個分支遷移到新的Git儲存庫中。
要遷移的SVN分支路徑: http://xx.xxx.xx.xx/svn/myRepo/branches/firstBranch
。
當我運行此命令時:
git svn clone http://xx.xxx.xx.xx/svn/myRepo --no-metadata --stdlayout --branches branches/firstBranch --prefix origin/ --trunk .
...它簽出完整的存儲庫。 但是我需要在我的Git存儲庫中獲得一個分支。
您不需要--stdlayout
或--branches
。 只需執行git svn clone http://xx.xxx.xx.xx/svn/myRepo/branches/firstBranch .
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.