SVN Switch

|
| By Webner

I am assuming you are working on code from branch A (it may be trunk as well) and have already made some changes locally. Now you find you can’t commit your changes to SVN because they are not stable yet.
First of all, you should have started working on a separate branch. But since you did not, you should move your changes to a separate branch NOW, so that you could commit. For that use switch.

Follow these steps:

1. Create a branch B from code in A (That means B will have exactly same code as in A)
2. Now switch your local folder to B

Test a sample commit, it will go to B. You can commit all your local changes now to B.

That’s it, have fun!!

Leave a Reply

Your email address will not be published. Required fields are marked *