Reset

Reset Reference


undo add index
undo commit
Undo a merge/pull

drop all your local changes and commits, fetch the latest history from the server and point your local master branch at it like this


git fetch origin
git reset --hard origin/master