简体   繁体   English

无论如何,有没有将一个特定的文件夹从SVN存储库克隆到git

[英]Is there anyway to clone one particular folder from SVN repository to git

Our team have a remote git repository located in US.and we have our source code stored in SVN. 我们的团队在美国有一个远程git仓库,我们的源代码存储在SVN中。

Which is the best way to share our code.I do not want to clone my entire svn repository to git or vice versa 这是共享代码的最佳方法。我不想将我的整个svn存储库克隆到git中,反之亦然

Can I point my SVN repository to get source code from the Git remote Repository so that we will not store source code from git repository to our SVN server? 我可以指向我的SVN存储库以从Git远程存储库获取源代码,以便我们不将git存储库中的源代码存储到我们的SVN服务器中吗?

Any 任何

Can I point my SVN repository to get source code from the Git remote Repository 我可以指向我的SVN存储库以从Git远程存储库获取源代码吗

In short - no. 简而言之-不。 Git can read|write into SVN-repos, but inversed "driver" isn't possible Git可以写入SVN-repos,但是不可能反转“驱动程序”

But title of your question describe slightly different case - you want (?) to have part of SVN repository (trunk?) in Git with bi-directional sync? 但是问题的标题描述的情况略有不同-您是否希望(?)在Git中具有SVN信息库的一部分(trunk?),并且具有双向同步功能? And this trick is possible, rather easy - clone with git-svn or SubGit REPO/trunk , get ordinary git-repository with one know remote (SVN repo), which can be used in casual way, and data can be exchanged with SVN 这个技巧是可能的,相当容易-使用git-svn或SubGit REPO/trunk克隆,使用一个已知的远程(SVN repo)获得普通的git-repository,可以随意使用它,并且可以与SVN交换数据

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM