Git error:'fatal: Couldn't find remote ref master'

时间:2020-12-31 09:43:29   收藏:0   阅读:879

本文选取并翻译自:https://saywebsolutions.com/blog/git-github-error-fatal-couldnt-find-remote-ref-master

如果出现该错误提示,可能是因为使用了旧命令:

   git pull origin master

master现在被认为是有种族歧视的,github将其换成了main,所以现在使用pull可以写为:

   git pull origin main

如需要将已有repos的master换为main,可依照以下步骤:

 

原文:https://www.cnblogs.com/mygh/p/14214224.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!