How do you deploy from svn when your original repository is in Git -


My team has developed using Git to make good use of many features, we use more git Are skilled, svn.

However our current customer wants us to deploy the code from an svn repository, which means that we need to take svn code from regular git to our code.

At the moment we maintain a directory which is both a svn checkout and a GIT repo (a .git and so on) and we can then drag the git; Svn commit

Of course, the process is a bit more complex, because we want to use the tag for recording release points, and there is an overhead to play svn on files created by GIT.

What is the best way to do this?

Is git-svn helping in this problem? I have never allowed this to be used by a personal developer at the local level GIT tool, while I have never seen using SVN repo. I do not know how well it will work with many developers working on many branches.

If a person is considered to be a consolidation of all code for SVN, and you know that no SVN is contributing to the repo, then you should change it to git-svn You can use:

  1. The integrator uses its master as the tracking branch for svn (eg g It svn clone $ REPO). She never works on this branch
  2. Developers work normally (possibly on the branches of the topic, with some main integration branches)
  3. When you want to do a release, the integrator pulls all the developer codes for their main branch (not master but something like integration )
  4. Integrator git svn dcommit
  5. Li>
  6. If you are contributing to other SVN, then you can still do this, but the compiler will be regularly Will have to draw and make those changes available to devs so that merge to avoid collision.

    At any rate, getting the code without much hassle in SVN is the main issue. You can add tags and branches in SVN without local checkout, so that the integrator can tagging (not sure If git svn will send the tag to SVN or not)


Comments