git force overwrite of local files with master branch command code example Example: git force pull git fetch --all git reset --hard origin/master