Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Merging uncommitted changes into some other branch using SVN

Tags:

svn

I have copied /trunk/project_a to /branches/project_a/test_1. However, I have not yet committed the newly created branch. Then I did some changes in the working copy which I originally intended to commit with the newly created branch. However, after I was done, it seems better to commit those changes into the trunk. (I could then commit the branch without the changes and merge them from the trunk or I just revert the branch creation and branch anew. That doesn't really matter.)

My question: Is there a way to merge uncommitted changes (and from an uncommitted branch) in SVN?

like image 684
sbi Avatar asked Aug 06 '09 18:08

sbi


1 Answers

I think in your case it's easiest to just commit everything where it is and merge back to trunk. But if you're really desperate you could try to create a patch file, apply it to trunk and revert your changes in the branch.

like image 128
Jim T Avatar answered Nov 10 '22 19:11

Jim T