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