Home > How To > SVN Roll back

SVN Roll back

Today we had committed the wrong version into the trunk by mistake.

Little googling got me the answer. Here is the scenario which might save your @$$ .

My Best friend today was svn merge.



svn merge is also used to roll back a change that has already been committed. 



Suppose you’re working away happily on a working copy of /calc/trunk, and you discover that the change made has been checked-in to trunk by accident as 939 but you want the roll back to original.
Use the below command
$ svn merge -r 926:939 http://svn.example.com/repos/calc/trunk

Here merge will get 926 version into your checkout code then all you need to do is Check-In the latest version into Trunk.
Advertisements
Categories: How To
  1. No comments yet.
  1. No trackbacks yet.

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

%d bloggers like this: