Mercurial:变基后如何恢复
我不小心使用 --rebase 参数从主存储库中提取了一些更改。
如何从变基期间创建的备份恢复原始存储库状态?
I've accidentally pulled some changes from the main repo with --rebase parameter.
How do I restore the original repository state from the backup which was created during the rebase?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
hg unbundle
用于应用备份文件:但是,这不会删除 rebase 创建的新变更集;从没有重新设置基础的变更集(即从服务器克隆最新版本)的存储库中调用
hg unbundle
可能是个好主意。hg unbundle
is used to apply the backup file:However, this does not remove the new changesets that have been created by the rebase; it is probably a good idea to call
hg unbundle
from a repo that does not have the rebased changesets (i.e. clone latest version from server).