问题描述
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

问题描述
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
相关文章:1. node.js - nodejs superagent读取网页内容,怎么控制请求的频率2. android - Could not read input channel file descriptors from parcel.崩溃怎么解决3. Android数据库update方法的问题4. android - recyclerview中头部问题5. 框架学习 - Android 界面框架!6. android - 为View添加onClicklistener没有生效7. android - 重复登录 怎么解决 比如两台设备同时登录一个账号8. android - 静态方法中可以持有Activity对象吗9. sqlite - Android 中如何处理多用户的数据存储?10. android - getApplication() 和 getApplicationContext()返回的有什么不同?

网公网安备:皖ICP备2020019022号-8 Copyright ¢ 2020-2025 Powered by V1.8 All Rights Reserved 技术支持:乐呵呵网
声明:本站所有资源以学习为主