how to force git to take the changes in origin code example Example: git force pull git fetch --all git reset --hard origin/master