repo sync下来的代码为什么git branch看本地branch是no branch?
你repo init是怎样的?有没有指定branch?或者你可以git branch -a查看所有分支,再切换到你想要的分支。
我可以相信,你没有cd进入刚才clone的目录
试试
git fetch --all && git reset --hard origin/master
8 回答3.8k 阅读
5 回答1.1k 阅读✓ 已解决
4 回答571 阅读✓ 已解决
2 回答1.1k 阅读✓ 已解决
2 回答962 阅读✓ 已解决
2 回答897 阅读✓ 已解决
2 回答625 阅读✓ 已解决
你repo init是怎样的?有没有指定branch?或者你可以git branch -a查看所有分支,再切换到你想要的分支。