本文共 540 字,大约阅读时间需要 1 分钟。
$ repo start branchname #建立自己的分枝
$ repo status #查看分枝状态
$ repo start branchname project #在项目下建立分枝 我在kernel下尝试建立分枝成功 repo start master kernel
$ git checkout branchname #跳转到自己建立的分枝
查看分枝:
$ git branch #速度快,直接显示分枝 or... $ repo branches #速度慢,会显示分枝在哪个项目下查看文件状态:
$ repo status 查看未commit的文件,与git的功能一样: $ repo diffTo update your local working directory after changes are merged in Gerrit:
$repo sync To safely remove stale topic branches: $ repo prune
转载地址:http://uofvb.baihongyu.com/