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

git branch -r

origin/branch
origin/hexo

git checkout -b hexo origin/hexo

原文地址:https://www.cnblogs.com/jackyshan/p/7200000.html