需求合并分支audio_dev_one_201010,要以此分支创建自己的开发分支
1.checkout这个分支
git checkout audio_dev_one_201010
2.在此分支下执行
repo start audio_branch_one_201010_candy --all
此时分支切换到audio_branch_one_201010_candy,可以用repo status查看当前各modul的分支名称
- 把项目主分支push到远程
git push mainPro HEAD:audio_branch_one_201010_candy
或者 git push mainPro HEAD
直接输入git push 回车 会给提示
4.把各module的分支push到远程
repo forall <project module name> -c <git 命令>
<project module name>:是你的module名称,如果module外面有文件夹,要写全,比如我的basemodule是放到components文件夹下,写为:components/basemodule
-c:后面跟git命令,意思是给<project module name>列举的这些module执行给出的git命令,比如git add.
例如:你的项目中有以下组件:basemodule,groupmodule,library
repo forall components/basemodule components/groupmodule components/im components/library -c git push module audio_branch_one_201010_candy
把这几个module 都执行git push module audio_branch_one_201010_candy命令,push到远程
也可以cd到对应的module下,执行git命令
网友评论