I wanted to edit one answer, but it turns out I had several tabs opened, and I didn't realize what I was doing until it was too late, and I edited the wrong answer from another page.
Now the modification has been recorded. The only way I found to undo my changes was to rollback, but then it counts as an extra commit in the answer revision log, and it still tags it with "edited by [me] [x] sec ago".
Was there a way to completely remove my edit from the commit list instead of applying a rollback?
I immediately recognized my error, if that's relevant.
Is the original author of the answer going to be notified of an edit of his question and waste time trying to understand what happened?
git reset --hard HEAD~
, notgit revert HEAD
? ;-) Sorry, Stack Overflow doesn't allow pushing with--force
. ;-P