欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

push出现问题:fatal: The current branch master has no upstream branch.

程序员文章站 2022-03-07 10:22:43
...

git push 出现下面的错误:

fatal: The current branch master has no upstream branch.

先执行git pull origin master,若出现下面错误:

fatal: refusing to merge unrelated histories

执行:

$ git pull origin master --allow-unrelated-histories

最后在push