Is it possible to have a subversion repository as a “submodule” in git?

ε祈祈猫儿з 提交于 2020-01-04 06:14:58

问题


Is it possible to have a subversion repository as a "submodule" in git?

In this project we will have several parts, but some parts will use svn and some will use git. So I am looking into a "project root" from where we can have the other projects as submodules (or similar).

And the question is if it is possible manage this "project root" with git?

Thanks Johan


The inverse question can be found here:

  • Is it possible to have a git repository as a “vendor branch” in subversion?

Update:

In the inverse question VonC gave a tip that this could be done with git-svn, does anybody have a example on how this could look like?


回答1:


Yes, if the subversion repo is first cloned as a git repo: see git-svn.
Once there are cloned, you can make some modifications in the git repo and 'dcommit' them to the svn repo, or you can update your git repo with svn repo evolutions.

Example: Git - SVN Crash Course



来源:https://stackoverflow.com/questions/3201396/is-it-possible-to-have-a-subversion-repository-as-a-submodule-in-git

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!