使用 TortoiseSVN 恢复到以前的版本 [英] Reverting to a previous revision using TortoiseSVN

查看:53
本文介绍了使用 TortoiseSVN 恢复到以前的版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 Windows TortoiseSVN 将我的工作副本恢复到以前版本的最简单方法是什么?

What is the easiest way to revert my working copy to a previous revision using Windows TortoiseSVN?

我没有找到任何可查找"的命令来快速执行此操作.

I did not find any "findable" command to do that quickly.

推荐答案

有几种方法可以做到这一点.但不要只是按照此处的建议更新到较早的修订版.

There are several ways to do that. But do not just update to the earlier revision as suggested here.

从单个修订版或一系列修订版中恢复更改的最简单方法是使用修订版日志对话框.这也是您想放弃最近的更改并将较早的修订版设为新 HEAD 的方法.

The easiest way to revert the changes from a single revision, or from a range of revisions, is to use the revision log dialog. This is also the method to use of you want to discard recent changes and make an earlier revision the new HEAD.

  1. 选择您需要恢复更改的文件或文件夹.如果您想恢复所有更改,这应该是顶级文件夹.
  2. 选择 TortoiseSVN → 显示日志以显示修订列表.您可能需要使用 Show AllNext 100 来显示您感兴趣的修订版.
  3. 选择您要还原的修订.如果要撤消一系列修订,请选择第一个并在选择最后一个时按住 Shift.请注意,对于多次修订,范围必须不间断且没有间隙.右键单击选定的修订版,然后选择 Context MenuRevert 从此修订版中的更改.
  4. 或者,如果您想将较早的修订版设为新的 HEAD 修订版,请右键单击所选修订版,然后选择 Context MenuRevert to this revision.这将放弃所选修订后的所有更改.
  1. Select the file or folder in which you need to revert the changes. If you want to revert all changes, this should be the top level folder.
  2. Select TortoiseSVN → Show Log to display a list of revisions. You may need to use Show All or Next 100 to show the revision(s) you are interested in.
  3. Select the revision you wish to revert. If you want to undo a range of revisions, select the first one and hold Shift while selecting the last one. Note that for multiple revisions, the range must be unbroken with no gaps. Right click on the selected revision(s), then select Context MenuRevert changes from this revision.
  4. Or if you want to make an earlier revision the new HEAD revision, right click on the selected revision, then select Context MenuRevert to this revision. This will discard all changes after the selected revision.

您已恢复工作副本中的更改.检查结果,然后提交更改.

You have reverted the changes within your working copy. Check the results, then commit the changes.

我如何.."中解释了所有解决方案.TortoiseSVN 文档的一部分.

All solutions are explained in the "How Do I..." part of the TortoiseSVN docs.

这篇关于使用 TortoiseSVN 恢复到以前的版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆