1、 src refspec ‘refs/heads/master’ does not match any existing object (-1)
将本地GIT版本库PUSH到一个GITHUB上一个空的版本库时可能会出现如下错误
error: src refspec ‘refs/heads/master’ does not match any existing object (-1)
原因: 本地版本库为空, 空目录不能提交 (只进行了init, 没有add和commit)
可以通过控制台重新 添加提交上去。
本文介绍了解决在将本地Git版本库推送到GitHub空版本库时遇到的错误:srcrefspec‘refs/heads/master’doesnotmatchanyexistingobject(-1)。此错误通常发生在本地版本库为空的情况下,文章提供了通过控制台重新添加并提交文件来解决问题的方法。
1330

被折叠的 条评论
为什么被折叠?



