git pull and update from commit code example
Example 1: how to pull and overwrite local changes git
git fetch --all
git reset --hard origin/master
Example 2: how to get stashed on git
git stash pop
git fetch --all
git reset --hard origin/master
git stash pop