简体   繁体   English

是否可以向从Subversion版本库主干克隆的git svn版本库添加分支?

[英]Is it possible to add a branch to a git svn repository that was cloned from the Subversion repository's trunk?

I have a git-svn repository I had originally cloned from an svn repo's trunk, like so: 我有一个git-svn信息库,最初是从svn仓库的主干中克隆的,如下所示:

http://server/svn/MxProject/trunk

Since I cloned only the trunk and didn't grab the branches directory, is there a way I can access the branch without doing a full clone? 由于我仅克隆了主干而未获取分支目录,因此有没有一种方法可以在不进行完全克隆的情况下访问分支?

Of course, I found the solution AFTER I posted the question lol. 当然,发布问题大声笑之后,我找到了解决方案。 Hope this helps point someone else in the right direction: 希望这有助于向其他人指出正确的方向:

I found the solution on this SO post . 我在此SO帖子上找到了解决方案

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将SVN存储库主干链接为Git存储库子文件夹的分支 - Linking SVN repository trunk as branch for Git repository subfolder 是否有可能将git存储库作为subversion中的“供应商分支”? - Is it possible to have a git repository as a “vendor branch” in subversion? 如何将git master分支推送到新SVN存储库的trunk - How to push git master branch to trunk of a new SVN repository 关注Subversion存储库Trunk的最佳实践:Git(镜像),Git-Svn,Subversion? - Best Practice for following Subversion repository Trunk: Git (Mirror), Git-Svn, Subversion? 使用没有trunk标记和分支的SVN存储库从SVN迁移到Git - Migrating from SVN to Git with SVN repository having no trunk tags, and branches 有没有办法从克隆的git-svn存储库中“git svn dcommit”: - Is there a way to “git svn dcommit” from a cloned git-svn repository : 使用git-svn克隆了整个SVN存储库后,应该如何切换到中继? - How should I switch to trunk after I cloned an entire SVN repository with git-svn? Git分支中的SVN存储库 - Svn repository in a Git branch 我的“ git svn”存储库是否在Subversion存储库之前? - Is my “git svn” repository ahead of subversion repository? 将svn:externals复制到git存储库(从Subversion引用git) - Replicating svn:externals into a git repository (Referencing git from Subversion)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM