I need to revert multiple revisions (e.g. 28693, 28756, 28747) which are already in svn repo.
With svn I can achieve this with one command:
svn merge -c -28693,-28756,-28747 https://repository/trunk
How to make the same with git-svn?
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.
git revert <commit1> <commit2> ...should do the trick.Edit following the discussion:
If you don’t know the hashes (you can find the SVN revisions in the
git logby looking at thegit-svn-idfield, it’s the number after the@), the following one-liner works for me: