If I want to throw away all of my changes, and return to the code that is on the repository, I do the following:
$ rm -fr *
$ svn up
This is easy enough, but I'm wondering if there is a single command that will accomplish this, something like:
$ svn revert-all
You could do:
This will not delete any new file not under version control. But you can easily write a shell script to do that like:
There is a command
OR
you can use the --depth=infinity, which is actually same as above:
svn revert
is inherently dangerous, since its entire purpose is to throw away data—namely, your uncommitted changes. Once you've reverted, Subversion provides no way to get back those uncommitted changesTo revert modified files:
Use the recursive switch --recursive (-R)