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

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

程序员文章站 2022-03-07 10:23:31
...

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 `后面跟上分支名`
相关标签: git