warning: remote HEAD refers to nonexistent ref, unable to checkout.

在clone項目的時候出現如下警告信息:
warning: remote HEAD refers to nonexistent ref, unable to checkout.

在這裏插入圖片描述

項目目錄clone下來了,但是點進去什麼文件也沒有,說明你的項目地址沒有master分支。

可以用 git branch -a 查看遠程倉庫的分支有哪些?
在這裏插入圖片描述
切換到Branch_stable-it分支,項目就有代碼了。
git checkout Branch_stable-it


【注】如果 git branch -a 不顯示分支,則可參考 git clone非master分支代碼

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章