You are here

How to merge SVN trunk from branch

Submitted by Asif Nowaj, Last Modified on 2019-11-08

Below are the steps that can be followed if you want to merge a branch version of code into your Trunk.


  1. Go to your working copy of the branch and validate if there is any change is left to commit by looking at the commit window.
  2. When you are confident that all the changes are in the branch already. Switch working copy by right clicking project root in Windows Explorer > TortoiseSVN > Switch
  3. Switch to the trunk then ok
  4. Right click project root in Windows Explorer > TortoiseSVN > merge
  5. Select "Merge a range of revisions" as Merge Type then click Next
  6. Provide branch location of your code base in "URL to merge from"
  7. Make sure that "Specific range" is selected and leave box empty if you want to merge all the changes of branch. This will merge the all the changes that were done after this branch was created from the Trunk.
  8. Make sure that your "Working Copy" location shows correctly.
  9. Click Next, then press the ‘test merge’ button. This will highlight any conflicts.
  10. When you are happy with the tet merge result, you can click "Merge",.
  11. Now you have the opportunity to edit the conflict if there is any before merge.
  12. You have successfully updated with all trunk changes into your local working copy, now you need to commit the changes with appropriate comments.

If you are wondering about the step 7, on how you can create a SVN branch from trunk, please check out the link.

Discussion or Comment

If you have anything in mind to share, please bring it in the discussion forum here.