Undoing Git Changes
This tutorial covers the skills needed when working with earlier versions of a software development project. It first shows how to find commits in past history, then explains the difference between undoing commits that have been published to a public repository and undoing commits that exist only on your local machine.
Git Tutorial: Undoing Changes