繁体   English   中英

恢复化石的局部变化

[英]Revert local changes in fossil

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

干净的命令看起来像它应该做的伎俩,但不,本地的变化仍然存在。 我正在寻找与“git checkout filename.c”相同的效果。

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM