4

如何使用 Fossil在单个源文件中清理/恢复/撤消本地未提交的更改?

clean命令在我看来应该可以解决问题,但是不,本地更改仍然存在。我正在寻找与“git checkout filename.c”相同的效果。

4

1 回答 1

9
fossil revert <filename>

.

>fossil help revert
Usage: fossil revert ?-r REVISION? ?FILE ...?

Revert to the current repository version of FILE, or to
the version associated with baseline REVISION if the -r flag
appears.

If FILE was part of a rename operation, both the original file
and the renamed file are reverted.

Revert all files if no file name is provided.

If a file is reverted accidently, it can be restored using
the "fossil undo" command.

Options:
  -r REVISION    revert given FILE(s) back to given REVISION

See also: redo, undo, update
于 2013-09-04T12:40:05.607 回答