简体   繁体   中英

Tortoisesvn creating a branch and switch

This might be a dumb question but I'm unable to understand:

When we create a new branch, why do we need to 'switch'? What does this 'switch' exactly do? Can't I use the whole repository as I was using earlier without bothering about switch?

Switch changes the association between your working copy and the path on the server. You can branch from your working copy from trunk (for maintenance) and continue hacking away - still on trunk.

Using switch will update your working copy to use the new branch you just created.

As an example, if you create a branch from your trunk, you will probably want to switch your working copy over to the branch you just created so that you can make edits, etc.

In the Branch / Tag dialog there is a button at the bottom called "Switch working copy to new branch/tag" selecting that will switch you automatically to the newly created branch.

I wish there was a way to automatically check that box but there isn't :(

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM