git command to force an overwrite of local files to master branch code example
Example 1: how to pull and overwrite local changes git
git fetch --all
git reset --hard origin/master
Example 2: git pull hard
git reset --hard origin/master
git fetch --all
git reset --hard origin/master
git reset --hard origin/master