I would like to revert my SVN central repository, not a working copy, from revision M to revision N ( M > N ), like a git reset –hard
How can I do that ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
EDIT
the other answer (https://stackoverflow.com/a/24500425/520162) seems to be a better solution than the one proposed by me. Check that one!
On the client, it’s simple:
should do it.
If you’re on the server (like your edited question says), it depends what you want to achieve.
If you want to throw away all revisions after
N, do athen, delete the old repo and create a new one
If you want to keep your repo, check out
Non a client and commit to the server, so thatNis the latest state.Third one: set up a branch starting from
Nand work on that one.