git overwrite local file with remote master code example Example: git override local file with remote git fetch git checkout origin/master <filepath>