如何将 HEAD 更改为以前的修订版 [英] How do I change the HEAD to a previous revision

查看:29
本文介绍了如何将 HEAD 更改为以前的修订版的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们遇到过有人将提交到我们的 SVN 服务器搞砸的情况.大量文件被删除等

We've got a situation where someone messed up a Commit to our SVN server. A lot of files were deleted, etc.

问题: 使上一个(对于错误的 Commit)修订版成为 HEAD 修订版的技术是什么?我已经在这里看到关于 SO 的讨论,因为它为 1 个文件执行此操作,但我们希望使它像上次提交从未发生过一样.有什么想法吗?

Question: What is the technique for making the previous (to the bad Commit) revision the HEAD revision? I've seen discussion here on SO for doing this for 1 file, but we'd like to make it like that last commit never happened. Any ideas?

所有这些答案似乎都是正确的.我将 abatishchev 的答案标记为正确答案仅仅是因为我使用的是 Tortoise SVN,而且这是我实际使用的方法.

All of these answers seem to be correct. I marked abatishchev's answer as the correct answer simply because I'm using Tortoise SVN and it's the method I actually used.

推荐答案

也许你可以显示日志,检查以前的修订版 (n-1),在上下文菜单中选择 Revert to this revision 并提交更改(它将变成 n+1,其中n为当前坏磁头)

Maybe you can show log, check previous revision (n-1), in context menu choose Revert to this revision and commit the changes (it will becomes n+1, where n is current bad head)

这篇关于如何将 HEAD 更改为以前的修订版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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