簡體   English   中英

使用git svn clone克隆復雜的svn分支設置

[英]Cloning complex svn branch setup with git svn clone

在我們的svn庫中,我在/branches 我在/branches/subdir1/branches/subdir2也有分支。 我試過傳遞--branches=/branches但是沒有得到subdir1subdir2 我試過傳遞branches=/branches branches=/branches/subdir1 branches=/branches/subdir2 ,但是仍然將subdir1subdir2當作自己的分支。 我也嘗試過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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM