如何使用Fossil清除/恢复/撤消单个源文件中的本地未取消更改?
clean命令看起来像它应该做的伎俩,但不,本地更改仍然存在。我正在寻找与“git checkout filename.c”相同的效果。
答案 0 :(得分:8)
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