Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I use git-svn to merge changes from trunk to a branch in svn?

Tags:

git

git-svn

I've seen people suggest to use git-svn to do the merge and commit it back to svn.

I'm looking for a good step by step guide.

  • Is it worth the trouble or should I just use svn to do it.
  • Will people see I've used git and is there any meta data about the merge in svn?
  • Can I do a clone of trunk and 1 branch I select?
  • Do I need a full clone or can I import it from the point where the branch was made?
like image 889
Eddy Pronk Avatar asked Sep 02 '11 01:09

Eddy Pronk


People also ask

How do I merge revisions in svn?

Merging ranges of revisionsEdit To merge a range of revisions, use svn merge -r start:end from to where start and end are revision IDs. This will merge all revisions starting at start+1 up to and INCLUDING end . Note: it will NOT include the first revision (ex: -r3:45 will merge 4 through 45).

How do I create a merge request in svn?

To add a new merge request, simply go to the Merge Requests sub-tab of your desired SVN repository. Then, select the New Merge Request button to the right of the screen. From there, the source branch can be selected from the From dropdown menu. The target branch can also be selected under To.


1 Answers

I have used the instruction in this post with much success. http://justaddwater.dk/2009/03/09/using-git-for-svn-repositories-workflow/

I use git to merge between branches then commit them to the svn repo. This does not follow the merge procedure for svn and so this can be problem for other users. the svn:merge property is not set

git-svn does not leave any evidence in the svn repo that you are using git-svn.

like image 171
thedavecollins Avatar answered Oct 21 '22 20:10

thedavecollins