1、下载本脚本,放到源码同步目录下;

2、然后打开终端,进入到源码同步目录;

3、输入以下命令:

sudo chmod 775 repo.sh

4、再输入以下命令;

./repo.sh

5、同步会自动开始,如果中断,3秒后会继续重新开始。