how to pull and overwrite local changes git

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

Also in Shell: