Install Smart Git - its intuitive GUI software. 10 minutes of reading about it will tell you how it works. Also try google about these commands:
git-reset
git-revert
git-checkout
They work differently depending on what exactly you want.
source
to share