【git报错】: The current branch master has no upstream branch
今天,当笔者和往常一样想往gitee仓库推送代码时,遇到了一个小问题。git add . ,git commit ...,git push报错。网上查了很多方法都没有解决,因为之前明明是可以的呀,我也没有做什么修改。最后发现,这几个原来是不一样的,最后一个文件路径下才可以成功推送。
·
今天,当笔者和往常一样想往gitee仓库推送代码时,遇到了一个小问题。git add . ,git commit ...,git push报错。fatal: The current branch master has no upstream branch. To push the current branch and set the remote as upstream, use git push --set-upstream origin master To have this happen automatically for branches without a tracking upstream, see 'push.autoSetupRemote' in 'git help config'
网上查了很多方法都没有解决,因为之前明明是可以的呀,我也没有做什么修改。
最后发现,这几个原来是不一样的,最后一个文件路径下才可以成功推送
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐



所有评论(0)