Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

decentralized development using git and git-svn

We have 2-3 small teams of 2-3 people. We all use git for local and svn for central repository and git-svn got sync. This is works all the time except when we want to share our code between the team it self.

So we have tried out git pull, this creates lots of conflicts and it does not detect that we are on the same tree. It fetches all the changes (same as clone then pull) Of course i dont want to clone full repo. every time I want to share.

Please suggest a better flow.

  1. We can't get rid of central svn.
  2. We can't clone every time.
like image 361
CantGetANick Avatar asked Jan 10 '11 09:01

CantGetANick


2 Answers

Nominate one team member as the 'git hub', he/she syncs with the SVN server, other team members interact with them, rather than the SVN server directly. That way git will know that all team members are on the same tree.

like image 174
Chris Huang-Leaver Avatar answered Oct 24 '22 23:10

Chris Huang-Leaver


SubGit seems like a great alternative for you.

SubGit is server-side solution, it enables Git access to Subversion repository and vice versa. That means you can work with Git repository only, using Git client of your choice.

You need to install SubGit into your Subversion repository once. After that SubGit immediately translates svn revision into git commit on every svn commit and git commit into svn revision on every git push.

SubGit is closed-source software but it is free for open-source projects. For more information please refer to SubGit documenation.

like image 28
vadishev Avatar answered Oct 25 '22 00:10

vadishev