error: failed to push some refs to 'XXX'


遇到上述无法提交的问题:都是这种命令git push -u origin master造成的

查看github上的提示:

解决:把之前的命令中的master修改成main就好了

相关