Git:remote HEADは存在しない参照を参照し、チェックアウトできません
Git Remote Head Refers Nonexistent Ref
問題の説明
warning: remote HEAD refers to nonexistent ref, unable to checkout.
ウェアハウスフォルダーの終了後にgitcloneが作成されましたが、フォルダーの内容は空です。
問題分析
.gitディレクトリの下に.git / refs / headsHEADファイルが指しているものが存在しません
解決
// Check all the branches, the purpose here is to look at remote branch (for example, / remotes / origin / master) git branch -a // checkout branch (use git branch command to see the emergence of new local branch / remotes / origin / master, and download the source code) git checkout /remotes/origin/master // Rename git branch -m /remostes/origin/master master