One of the 24 questions in this topic
It is the safe way to undo changes on public branches without rewriting history.