git pushing new branch error : 'set the remote as upstream'

git pushing new branch error : 'set the remote as upstream'

这是我当前 git 个分支的样子

C:\Users\workspace\my-sme-services>git branch
develop_MVP
* features/FEAT-1245
master

features/FEAT-1245 派生自 develop_MVP。我已经将我的代码提交到我的分支中,features/FEAT-1245现在当我尝试推送我的分支时,我收到以下错误。

C:\Users\workspace\my-rhb-sme-services>git push
fatal: The current branch features/FEAT-1245 has no upstream branch.
To push the current branch and set the remote as upstream, use

git push --set-upstream origin features/FEAT-1245

我该如何推进这个分支?

正如消息所说,您应该使用命令:

git push --set-upstream origin features/FEAT-1245

或者您可以使用快捷方式:

git push -u origin features/FEAT-1245