fatal: The current branch venueCamera has no upstream branch. To push the current branch and set the

  • Post author:
  • Post category:其他




git创建分支后第一次push到远程分支时报出一下错误

fatal: The current branch venueCamera has no upstream branch.
To push the current branch and set the remote as upstream, use

    git push --set-upstream origin venueCamera

原因: 没有和创建的分支做关联,他不知道你要提交到哪个分支去



解决办法

git push --set-upstream origin `后面跟上分支名`



版权声明:本文为m0_47294634原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。