git push origin master提示
error:src refspec master does not match any
問題產(chǎn)生原因分析
引起該錯(cuò)誤的原因是车遂,目錄中沒有文件才沧,空目錄是不能提交上去的忽媒,而且在push之前至少有過一次commit
解決方法
git init
git touch READMEgit
git add README
git commit -m 'first commit'
git remote add origin https://github.com/xxx.github.io.git
git push origin master