search

Home  >  Q&A  >  body text

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

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

迷茫迷茫2772 days ago532

reply all(3)I'll reply

  • PHPz

    PHPz2017-04-17 17:35:29

    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.

    reply
    0
  • 迷茫

    迷茫2017-04-17 17:35:29

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

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 17:35:29

    try

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

    reply
    0
  • Cancelreply