I\'d been working on something, and decided it was completely screwed...after having committed some of it. So I tried the following sequence:
git reset --har
git reset --hard origin/master
will remove all commits not in origin/master where origin is the repo name and master is the name of the branch.
origin/master
origin
master