一个repo包含多个git时,每个git分别更新过于麻烦。比如服务器地址为https://10.10.0.100,repo项目名称为test_project:
repo init --repo-url=http://10.10.0.100:8088/repo --no-repo-verify --repo-branch=master -u http://10.10.0.100:8088/manifest.git -m test_project.xml
repo sync
repo start master --all
最后一行的repo start master --all就代替了原来在每个git库路径下git checkout master的作用。