Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git & SVN on same code base

Tags:

git

svn

git-svn

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.

like image 575
Bryan Ruiz Avatar asked Jun 26 '26 14:06

Bryan Ruiz


1 Answers

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.

like image 112
ThiefMaster Avatar answered Jun 29 '26 11:06

ThiefMaster



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!