why git pull is overwriting the changed files code example Example: git force pull git fetch --all git reset --hard origin/master