首页 > 为什么repo sync下来的代码处于no branch的状态

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

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


试试

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

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


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

【热门文章】
【热门文章】