Home > Q&A > body text
repo sync下来的代码为什么git branch看本地branch是no branch?
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.
迷茫2017-04-17 17:35:29
I can believe that you did not cd into the directory you just cloned
大家讲道理2017-04-17 17:35:29
try
git fetch --all && git reset --hard origin/master