Repo command summary

来源:互联网 发布:js url中文传参乱码 编辑:程序博客网 时间:2024/05/17 22:22
//initial
repo init xxx  
//sync code
repo sync -j5 -c  -d
//create branch bug1
repo start --all bug1

//start bug1
cd xxx 
//add to git index
git add .  
//commit change
git commit -s -a 
//upload change
repo upload --cbr . 

//create branch bug2
repo start --all bug2
//check manifest
ll .repo/manifest.xml 
//align manifest head
repo sync -j5 -c -d  
//switch to bug2
repo start --all bug2  
//clean the modification
repo forall -c "git reset --hard"  

//check branch
repo branch  
//switch to branch bug1
repo checkout bug1  
//delete branch bug1
repo abandon bug1  
0 0