git commit时出错:error: src refspec master does not match any
Posted 柳鲲鹏
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git commit时出错:error: src refspec master does not match any相关的知识,希望对你有一定的参考价值。
- 具体错误
$ git push --set-upstream origin master
error: src refspec master does not match any
error: failed to push some refs to 'https://github.com/quantum6/YuvToJpegLib'
- 解决办法
加个分支。
git branch -M master
# main也许更好理解,大家都喜欢使用master
以上是关于git commit时出错:error: src refspec master does not match any的主要内容,如果未能解决你的问题,请参考以下文章
git报错error: src refspec refs/heads/master does not match any.
Eclipse git commit错误;Committing changes has encountered a problem An Internal error occured
gerri push git remote: ERROR: committer email address remote: ERROR: does not match your user accoun
git-pylint-commit-hook 不检查所有项目文件
git add 文件出现的错误error: ‘xxx/‘ does not have a commit checked out 解决方法