git push之后显示: error: src refspec main does not match any
原因:可能是因为自己的分支是master,而github上是main
解决:git branch -m master main,然后再git push origin main
git push 之后显示:failed to push some refs to 'git@github.com:
原因:本地仓库文件版本不是最新(有人再github上传了文件)
解决:建议先 git pull --rebase origin master 先合并版本;然后再git push origin main