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.
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.