How can i revert a commit having the following situation?
Revision 3, Commit Message
Revision 2, Commit Message
Revision 1, Commit Message
Revision 2 is a bad commit and i want to remove it. How?
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.
You can undo commits via the reverse merge in SVN:
Assuming you have a working copy which is checked out from trunk:
This will undo the changes you’ve made in the revision 2 and leave you a working copy with changes which you need to commit.
This will not change the history, cause it’s not possible in SVN to change the history of already checked in revisions. Only via a dump/load cycle on the repository server it’s possible to completely remove a revision which i can’t recommend.