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

今天使用git clone时候 提示 

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

经过测试解决办法如下

git branch -a 

//显示 remotes/origin/test

git checkout remotes/origin/test

重新checkout

git项目文件便拉到文件目录了

猜你喜欢

转载自www.cnblogs.com/oumi/p/10460796.html