开发者

Git & SVN on same code base

I have a code base that needs to be tracked by both git and svn due to two teams working on the code with different practices.

The problem I am having is that git is storing all the .svn directories in its repo. I could use a very large .gitignore file and specify every single instance of every .svn directory for every folder but that seems cumbersome.

Is there anything I can do, or am I forced to stop using Git and use SVN & SVN combo with a switch command for different repos?

Is the tool git-svn applicable? Doesnt seem to be from what I can understand. 开发者_开发技巧

Thanks.


Tell one of the teams (preferably the SVN one) to stop being a blocker and use the same VCS the other team uses.

If that's not possible, you'll have to use SVN for the central repository and git-svn for the other team.

However, that's pretty messy and you cannot use all the nice features of git - so it would be if the SVN team switched to Git.


Just put .svn in your .gitignore, Git will match it everywhere in the tree. And yes, git-svn may be very useful, if the main repo is the SVN one.


Do i understand you right, you have two teams working on the same code, but independent? I wouldnt do that. Imagine Team 1 changing something on the code and Team 2 doesnt know about it (since it have its own repository). Although if they just share the same code BASE, one could easily use a single repository with branches.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜