Creating topic branches
$ repo start branchname #建立自己的分枝
$ repo status #查看分枝状态
Using topic branches
$ repo start branchname project #在项目下建立分枝 我在kernel下尝试建立分枝成功 repo start master kernel
$ git checkout branchname #跳转到自己建立的分枝
查看分枝:
$ git branch #速度快,直接显示分枝
or...
$ repo branches #速度慢,会显示分枝在哪个项目下
Viewing client status
查看文件状态:
$ repo status
查看未commit的文件,与git的功能一样:
$ repo diff
Cleaning up your client files
To update your local working directory after changes are merged in Gerrit: $repo sync To safely remove stale topic branches: $ repo prune