SVN: Committing Changes Made to Trunk to a Branch

8.9k Views Asked by At

I have made a checkout from Trunk, made changes and committed the changes back to the trunk. Now, I want apply those changes to a branch as well. Can I switch my working copy to that branch and then commit those files that have changed to the branch? I do have the list of the files that I have changed, and thus I know which files to commit. But I want to see if switching my local copy to that branch is the way to go.

2

There are 2 best solutions below

7
On BEST ANSWER

You need to merge your trunk changes into the branch.

This is a very common use case and I urge you to read the whole chapter in the SVN manual regarding branching and merging so you understand what you need to do here and why.

0
On

As long as your branch was made off of trunk (or a branch off of trunk), you can merge the changes up into your branch. More info here.