linux下,git & repo 准备OK之后,repo init -u git://android.googlesource.com/platform/manifest.git -b cupcake其中 -b cupcake 是初始化某个指定的branch .问题是: 我怎么知道到底有哪些branch可以指定呢 ? 不同branch name如何获取 ?git branch -a 好像只是list本地的所有branch name . 如何知道远端git server上所有可以checkout的branch name ?
git branch -a 只是list本地分支吧。并不能知道server端有哪些branch.
用这个的前提是必须先不用 -b 选项,init一次,然后根据manifest.xml的选项再repo init .... -b xxx 。切换到相应的branch.还是不太方便。
不用的在repo sync的时候制定模块就好了,比如我要同步Android 4.0的Calendar日历模块,只需要输入
repo sync platform/packages/apps/Calendar就可以了