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

发生在git push origin master之后

改为git push origin main就好了
现在github的默认分支为main,所以,在提交时,需要提交到main,而不是master。

你可能感兴趣的:(git,github)