简体   繁体   English

git-svn多个git仓库到相同的svn仓库

[英]git-svn multiple git repositories to same svn repository

I have two separate git repositories - git1 and git2. 我有两个单独的git存储库-git1和git2。 Due to my advisor's recommendation, I need to copy them to the university's svn repository such that all git repo contributors can simultaneously update the university SVN repo along with the git repos. 根据我的顾问的建议,我需要将它们复制到大学的svn存储库中,以便所有git repo贡献者可以同时更新大学SVN仓库和git仓库。

git-svn looks like a good solution. git-svn看起来是一个很好的解决方案。 I followed instructions in the top answer in Pushing an existing git repository to SVN and was able to link one git repository. 我按照将现有git存储库推送到SVN中的最佳答案中的说明进行操作,并且能够链接一个git存储库。 Is it possible to link both git repos as two folders in the same svn repo? 是否可以将两个git repos链接为同一svn repo中的两个文件夹?

The folder structure might look like: 文件夹结构可能类似于:

  • SVN-repo SVN回购
    • project1 #links git1 using git-svn project1#使用git-svn链接git1
      • trunk 树干
      • branches 分行
      • tags 标签
    • project2 #links git2 using git-svn project2#使用git-svn链接git2
      • trunk 树干
      • branches 分行
      • tags 标签

Can someone point how this can be achieved? 有人可以指出如何实现吗? Indicating some actual instructions might be helpful. 指出一些实际的指示可能会有所帮助。

Incase someone faces the same problem, I am indicating my solution here. 如果有人遇到相同的问题,我在这里指出我的解决方案。

I was able to achieve this by creating two projects in the SVN repo with standard structure(trunk, branches and tags) and then using git-svn to link each git repo to a SVN project. 我能够通过在SVN存储库中创建两个具有标准结构(树干,分支和标签)的项目,然后使用git-svn将每个git存储库链接到SVN项目来实现这一点。 The exact set of instructions can be seen from my blog post: http://lookupnotes.blogspot.com/2013/01/git-to-svn.html 确切的说明集可以从我的博客文章中看到: http : //lookupnotes.blogspot.com/2013/01/git-to-svn.html

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

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