Subversion, Version Control Systems

Subversion Revert All


Working with Subversion on Ubuntu requires that you get to know actual svn commands as opposed to using GUI tools such as TortoiseSVN in Windows.

Normally svn help gives you a list of available commands. But recently I needed to revert all my local changes in my code and couldn’t figure out the command (or more correctly the switch) required to do this operation.

Then I came across this blog which has a combination of awk and svn revert which looks pretty cool. But the simpler more efficient solution as given by the comments in the post is

svn revert -R .

Note the period after “-R”

This worked for me!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s