草庐IT

anyerror

全部标签

git push 错误 error: src refspec master does not match anyerror: failed to push some refs to

error:srcrefspecmasterdoesnotmatchanyerror:failedtopushsomerefsto"http:XXXXXXX"释义为错误:SRCReFSPEC主控器不匹配任何。错误:未能将某些引用推到"引用地址"看了不少其他解答,以下原因与方法方法均未奏效1.本地仓库add后未commit的原因2.本地git仓库目录下为空3.gitinit错误最终解决方法是:要注意gitpush指令的格式,正确格式为:gitpush[remote-name(通常为origin)] [branch-name]push过程中如果本地分支与远端分支同名时,branchname只需要写