Possibility to delete commit

Asked

Viewed 68 times

0

I gave a commit but using a different version of the visual studio than the one the project was made, so there will be problems in publishing. I wonder if there’s a way I can delete this commit, and no one has updated it yet, so I can download the project version in the correct VS, make the changes and commit a new one? I’m using the AnkhSVN.

1 answer

0

Hello,

You can reverse the último commit you made, as follows:

  • Typo svn log -v -r M:N [--stop-on-copy] PATH
  • Copy the Path of the last commit made (e. g: 6b955d0)
  • Typo snv revert -v path to undo changes made (e. g: git revert -n 6b955d0)
  • The changes have been undone, now you can commit again with the old changes

For more details on the command visit: http://svnbook.red-bean.com/en/1.8/svn.ref.svn.c.revert.html

  • 2

    He’s not using git @Lucas Bittencourt.

  • I’m not using GIT.

  • The answer has already been edited by Brewerton using svn.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.