| --question
git clone download a warehouse with a warning, not related code generation
warning: remote HEAD pointing to reference that does not exist, can not be detected.
warning: remote HEAD refers to nonexistent ref , unable to checkout.
|--solution
Under .git directory .git / refs / heads HEAD file points to does not exist
git branch -a
git checkout remotes/origin/Zoro
In this case, the code related to the project directory
git branch
tips
(head pointer separated from origin / Zoro)
git checkout -b remotes/origin/Zoro
Switching to a new branch 'remotes / Origin / Zoro'
* remotes / Origin / Zoro
At this time, generating head
git branch -m remotes/origin/Zoro master
* The switching master to master branch
Branch -a git
* Master
remotes / Origin / Zoro
the Attention: git Help Branch (command name) to view the help