redesign the upgrade_git.sh for multithread output