做完'repo init'后怎么能切换分支



我已经创建了这样的存储库:

 repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1

但是我怎么能

  • 找出我的回购还有哪些其他分支
  • 切换到我的回购的另一个分支

谢谢。

# find out what other branches are there for my repo
git branch -a
# switch to another branch for my repo    
git checkout foo

ps停止使用repo,然后使用git。

最新更新