我看到了这个讨论解决方案的线程git,并在Mercurial的邮件列表中找到了这个帖子(该线程已经四年了)
邮件列表中提出的解决方案是使用hg rm -Af file(并且他们将实现此行为的可能性作为一种新的,更直观的选项).我想知道现在是否存在该选项.
另外,如果我尝试上面的命令:
> hg rm -Af my_file
> hg st
R my_file
Run Code Online (Sandbox Code Playgroud)
有一个R旁边my_file,但文件my_file在技术上是在磁盘上,我告诉Mercurial停止跟踪它,为什么我要R接下来呢?
mercurial ×1