svn revert — Undo all local edits.
svn revert PATH...
Reverts any local changes to a file or directory and
resolves any conflicted states.
will not only revert the contents of an
item in your working copy, but also any property
changes. Finally, you can use it to undo any scheduling
operations that you may have done (e.g. files scheduled
for addition or deletion can be
Discard changes to a file:
$ svn revert foo.c
If you want to revert a whole directory of files,
$ svn revert --recursive .
Lastly, you can undo any scheduling
$ svn add mistake.txt whoops
$ svn revert mistake.txt whoops
$ svn status
If you provide no targets to
, it will do nothing—to protect
you from accidentally losing changes in your working
requires you to
provide at least one target.