如何重新创建本地删除的文件

如何重新创建本地删除的文件

本文介绍了如何重新创建本地删除的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我移动了 2 个文件,因为它们与最新的 hg pull 冲突,而且我已经在我的工作计算机上完成了这些更改.现在我在家里的电脑上,我不再关心我的家庭版本,我想从存储库中获取最新的",所以我移动了文件 handler.pymodel.pyhandlerbackup.pymodelbackup.py 并做了一个 hg pull,期望 Mercurial 会重新创建我的移动后的文件,但没有.

I moved 2 files, since they were conflicting with the latest hg pull and I've already done these changes at my work computer. Now I'm at my home computer, and I don't care about my home version anymore and I want to get the "latest" from the repository, so I moved the files handler.py and model.py to handlerbackup.py and modelbackup.py and did an hg pull, expecting that Mercurial would recreate my files after the move, but it didn't.

我应该怎么做才能从存储库中重新创建已删除的文件?

What should I do to recreate my deleted files from the repository?

推荐答案

您始终可以使用 hg revert FILES 撤消任何本地更改.在这种情况下,mercurial 认为您想删除它,并且正在等待您提交删除操作.

You can always undo any local changes with hg revert FILES. In this case mercurial thinks you wanted to delete it, and is waiting for you to commit the deletion.

这篇关于如何重新创建本地删除的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 12:21