【技術】一個repo下包含很多個git時的下載方式

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章