android - 为什么repo sync下来的代码处于no branch的状态
迷茫
迷茫 2017-04-17 17:33:29
0
3
525

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

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(3)
PHPzhong

What is your repo init like? Have you specified branch? Or you can git branch -a to view all branches, and then switch to the branch you want.

迷茫

I can believe that you did not cd into the directory you just cloned

大家讲道理

try

git fetch  --all && git reset --hard origin/master
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template