I know this has been answered elsewhere at length, but I just need a simple answer... I can't understand the long discussions elsewhere.
This is the situation:
- Dev machine - pushes changeset X to head.
- Production machine - pulls changeset X. Production machine breaks.
- Developer panics, wants to revert to changeset X-1 on production machine, WITHOUT deleting changeset X.
What is the simple way to do this on the production machine?
Thanks.
UPDATE: I should have been searching for "roll back" a changeset, not "revert"! So should you if you are in the same situation - i.e. you want to return to a particular commit locally, without altering git history.