工作目录中的Mercurial Unstage特定文件

Jod*_*aki 7 mercurial

我有一个未提交的变更集.我想提交一些更改,但不提交一些文件(比如在git中取消暂存文件).这可以用mercurial完成吗?

Nia*_* C. 9

使用该-X选项可以hg commit排除某些文件.您可以在命令行上多次指定它.例如,

hg commit -X path/to/unwanted/file -X path/to/another/file
Run Code Online (Sandbox Code Playgroud)


Cat*_*lus 7

您可以传递要提交的文件列表hg commit,例如hg commit -m msg file1 file2 ....