repo sync同步下来之后,git branch 显示“no branches”

repo sync同步下来之后,git branch 显示“no branches”_第1张图片

显示“no branches”是正常的

原理是

repo sync是根据前面执行的repo init -u ssh://172.16.10.72:29418/manifest/test 得到的.repo/manifests/default.xmlrevision定义的版本进行更新的,我们默认定义的是master,它是按master对应的revision更新的,无branch,后续必须执行repo start建分支才能开发,看来官方就是这么设计的

repo sync同步下来之后,git branch 显示“no branches”_第2张图片

你可能感兴趣的:(repo sync同步下来之后,git branch 显示“no branches”)