Git ignore local changes and pull from remote


Sometimes you just want to ignore changes you made locally and have the same situation you have on your git remote server.

It is a simple thing to do, but don’t forget you will delete all the changes you have made locally before running this command.

Ignore local changes and overwrite them with remote:

git fetch --all
git reset --hard origin/master