因为只是git push没有指明哪个仓库。所以就报错了。指定仓库之后就成功了!(git push origin master)
如图:
转自:git push报错 fatal: The current branch master has no upstream branch. To push the current_南北极之间的博客-CSDN博客