记录一个很傻的错误。
今天想往github上提交一份代码,在git add . 和 git commit -m "first commit" 和 git push origin master之后,出现报错error: failed to push some refs to 'https://github.com/xxxxx/xxxx.git'
亏我还在网上去百度答案,原因其实很简单,我们需要将最后一条命令改为git push origin main
根据这篇新闻中的说法,由于美国的BLM运动吧,自去年十月份开始,新的库的主分支都更名为main而不是master了,已有的旧库不受影响。
PS: 建议Fate系列的master和servant用更加包容的词汇替换。