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