git override local file with remote code example
Example 1: oevrride localwith remote branch
git reset --hard origin/master
Example 2: git override local file with remote
git fetch
git checkout origin/master
git reset --hard origin/master
git fetch
git checkout origin/master