View RSS Feed

My Java Tips

Svn revert

Rate this Entry
by , 06-02-2011 at 08:16 PM (2652 Views)
You must have used SVN while working in a team on a Java project. In this post, Ill write about 'revert' command.

Let me present a scenario. You made some changes in a class and now you realize that the changes are not required/not correct. You wish to discard your changes. You have to use svn revert to discard your changes.

Java Code:
$ svn revert
Following switches are available:

Java Code:
--targets FILENAME
--recursive (-R)
--quiet (-q)
--config-dir DIR
Do note that if you donít provide targets to svn revert, it will do nothing.

Submit "Svn revert" to Facebook Submit "Svn revert" to Digg Submit "Svn revert" to Submit "Svn revert" to StumbleUpon Submit "Svn revert" to Google

Tags: revert, svn Add / Edit Tags