I am currently in /branches/private/issueNum
and I want to go back to /trunk/
without bringing any of the changes I had made in /branches/private/issueNum
so I can then start working on a new issue.
I am just unsure if I should be using svn switch .../trunk/
or svn checkout .../trunk
.
In case the working copy has no local uncommitted modifications, run svn switch ^/trunk
. The switch will complete faster than a clean checkout and it will not move any changes from ^^/branches/private/issueNum to the trunk.
You can also run svn checkout
to obtain a clean new working copy of trunk. But it's going to take a bit more time (actually depends on the size of the project) than switching.
Read the documentation: SVNBook | Traversing branches.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With