how to force a git pull without committing local code code example Example: git force pull git fetch --all git reset --hard origin/master