我创建了git local分支并推送到远程服务器。
git push origin git_based_branch_test
然后我用repo init / sync更新了我当前的工作区,以更新到基于Gerrit的存储库。使用git命令创建的所有本地分支都消失了。
repo start <git_based_branch_test>
在没有我之前更改的情况下被创建为新分支。那么可以帮我解决如何使用repo start拉出git_based_branch_test吗?
答案 0 :(得分:0)
在存储库中执行以下操作,您将创建一个本地git_based_branch_test跟踪远程git_based_branch_test(origin / git_based_branch_test)
$ git fetch
$ git checkout git_based_branch_test
Branch git_based_branch_test set up to track remote branch git_based_branch_test from origin by rebasing.
Switched to a new branch 'git_based_branch_test'