【技术】一个repo下包含很多个git时的下载方式

版权声明:除转载之外的其它原创文章,未经博主允许不得转载。 https://blog.csdn.net/antchen88/article/details/88075792

一个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的作用。

猜你喜欢

转载自blog.csdn.net/antchen88/article/details/88075792