The current branch business has no upstream branch.(关于新建一个分支,提交代码时,git报错的解决)

提交代码时,报:

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

git push --set-upstream origin business

 

解决方法:

git push origin 分支名 -u

posted @ 2021-03-15 17:46  温柔本肉  阅读(557)  评论(0编辑  收藏  举报