[英]Cloning complex svn branch setup with git svn clone
在我們的svn庫中,我在/branches
。 我在/branches/subdir1
和/branches/subdir2
也有分支。 我試過傳遞--branches=/branches
但是沒有得到subdir1
和subdir2
。 我試過傳遞branches=/branches branches=/branches/subdir1 branches=/branches/subdir2
,但是仍然將subdir1
和subdir2
當作自己的分支。 我也嘗試過branches=/branches/*/*
但是行為類似。 我如何獲得所有分支機構?
我需要來回一會兒,而svn2git對我來說不是一個選擇。 我想到了。 您可以通過在括號內使用逗號分隔的列表來指定特定的分支。 所以我的配置行具有以下相關行: branches = branches/{branch1,branch2,branch3}:refs/remotes/*
branches = branches/subdir1/*:refs/remotes/*
branches = branches/{branch1,branch2,branch3}:refs/remotes/*
branches = branches/subdir2/*:refs/remotes/*
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.