Note that you cannot undo a commit in the sense of being completely removed from the repository.
What you can do is get the state before committing and check it as the current state. This is probably what you found in your search and what Ben Lings answers to.
In addition, Ben Lings is right. Update the working copy, then extract the old version (this is part of the “reverse merge”), then execute it.
sleske
source share