25Switching to a Branch

Once you have created a branch, changes made on the trunk will be isolated from changes made on the branch. To make changes to the branch, you need to have a working copy that is pointing at the branch instead of the trunk.

The easiest way to get a working copy of the branch is to check out a new working copy using the branch URL instead of the usual trunk URL. This leaves you with two working copies on your computer: one for the trunk and one for the branch. Sometimes it’s not desirable to have two working copies, for example when the working copy is large and takes a long time to check out or when you have application servers or databases configured to point to the working copy.

The switch command tells Subversion ...

Get Pragmatic Guide to Subversion now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.