failed to push some refs to 'https://github.com/lanczh/grunt.git'
错误描述:
error: src refspec master does not match any. error:
failed to push some refs to 'https://github.com/lanczh/grunt.git'
原因分析
引起该错误的原因是,目录中没有文件,空目录是不能提交上去的
解决方法
添加缓存
提交
$
git add README
$
git commit -m "first commit"
最后
push
git push -f origin master