android - 为什么repo sync下来的代码处于no branch的状态

浏览:95日期:2022-12-07

问题描述

repo sync下来的代码为什么git branch看本地branch是no branch?

问题解答

回答1:

你repo init是怎样的?有没有指定branch?或者你可以git branch -a查看所有分支,再切换到你想要的分支。

回答2:

我可以相信,你没有cd进入刚才clone的目录

回答3:

试试

git fetch --all && git reset --hard origin/master

相关文章: