TIMEX
TIMEX

Reputation: 271934

I SVN updated, but I realize I messed up

How do I rollback to a previous revision? So that my files are back to revision 400?

Upvotes: 1

Views: 153

Answers (3)

shikhar
shikhar

Reputation: 2469

Run the following command:

svn -r rev-no up file-name

Upvotes: 0

plod
plod

Reputation: 517

How about:

svn merge -r [current_version]:[previous_version] [repository_url]

svn commit -m “Reverting previous commit and going back to revision [previous_version].”

taken from http://mybravenewworld.wordpress.com/2007/11/13/subversion-how-to-revert-a-bad-commit/

Upvotes: 5

plod
plod

Reputation: 517

svn update -r 400

Upvotes: 2

Related Questions