gpt4 book ai didi

tortoisesvn - TortoiseSVN开关分支

转载 作者:行者123 更新时间:2023-12-03 11:52:19 26 4
gpt4 key购买 nike

我使用svn已有一段时间了,但是最近有几个团队加入了该项目。其中一个团队创建了一个新分支,并要求我检查他们的一些更改。我转到目录,右键单击,svn-> switch并选择了新分支。我走进去,试图在正在浏览的页面上回显某些内容,以查看是否在新分支中工作,而我不是。这超出了我的工作范围,但是随着项目规模的扩大,我需要学习这一点。

基于此,我的问题..还有其他我没有做的事情吗?将工作副本切换到此新分支后,如何处理它?

最佳答案

结帐和切换之间的差异可能会加剧困惑。我认为在您的情况下,仅将分支 check out 到另一个文件夹会更简单,因为您只是在进行检查,而这可能是最直接的方式。

参见本节from the Tortoise docs:

要结帐或切换...

...that is (not really) the question. While a checkout downloads everything from the desired branch in the repository to your working directory, TortoiseSVN → Switch... only transfers the changed data to your working copy. Good for the network load, good for your patience. :-)

To be able to work with your freshly generated branch or tag you have several ways to handle it. You can:

TortoiseSVN → Checkout to make a fresh checkout in an empty folder. You can check out to any location on your local disk and you can create as many working copies from your repository as you like.

Switch your current working copy to the newly created copy in the repository. Again select the top level folder of your project and use TortoiseSVN → Switch... from the context menu.

In the next dialog enter the URL of the branch you just created. Select the Head Revision radio button and click on OK. Your working copy is switched to the new branch/tag.

Switch works just like Update in that it never discards your local changes. Any changes you have made to your working copy which have not yet been committed will be merged when you do the Switch. If you do not want this to happen then you must either commit the changes before switching, or revert your working copy to an already-committed revision (typically HEAD).

If you want to work on trunk and branch, but don't want the expense of a fresh checkout, you can use Windows Explorer to make a copy of your trunk checkout in another folder, then TortoiseSVN → Switch... that copy to your new branch.

关于tortoisesvn - TortoiseSVN开关分支,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13163160/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com