git force overwrite of local files with master branch code example
Example 1: git force pull
git fetch --all
git reset --hard origin/master
Example 2: git override local file with remote
git fetch
git checkout origin/master <filepath>
git fetch --all
git reset --hard origin/master
git fetch
git checkout origin/master <filepath>