git push origin master 时出现报错 因为当前分支并不是master,而是main,所以导致失败 解决方案: git switch -c master 转到master分支,再push即可