当前位置:   article > 正文

【git报错】: The current branch master has no upstream branch_fatal: the current branch main has no upstream bra

fatal: the current branch main has no upstream branch. to push the current b

今天,当笔者和往常一样想往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'

网上查了很多方法都没有解决,因为之前明明是可以的呀,我也没有做什么修改。

最后发现,这几个原来是不一样的,最后一个文件路径下才可以成功推送

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/416112?site
推荐阅读
相关标签
  

闽ICP备14008679号