version control - Revert local changes in fossil -


how clean/revert/undo local, un-commited changes in single source file fossil?

the clean command looks me should trick, no, local changes still there. looking same effect "git checkout filename.c" have.

fossil revert <filename> 

.

>fossil revert usage: fossil revert ?-r revision? ?file ...?  revert current repository version of file, or version associated baseline revision if -r flag appears.  if file part of rename operation, both original file , renamed file reverted.  revert files if no file name provided.  if file reverted accidently, can restored using "fossil undo" command.  options:   -r revision    revert given file(s) given revision  see also: redo, undo, update 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -