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

前端 未结 11 1031
没有蜡笔的小新
没有蜡笔的小新 2020-12-01 00:50

This seems like a popular error for different causes.

I\'ve got a simple bare git repo called \"kiflea.git\", I clone it like this:

git clone git://k         


        
11条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-01 01:07

    In my case the repo was empty.

    git checkout --orphan master
    
    git add some_file
    git commit -m 'init'
    git push origin master 
    

提交回复
热议问题