报错记录:
git branch --set-upstream-to=origin/develop develop 报错如下:
fatal: the requested upstream branch 'origin/develop' does not exist
hint:
hint: If you are planning on basing your work on an upstream
hint: branch that already exists at the remote, you may need to
hint: run "git fetch" to retrieve it.
hint:
hint: If you are planning to push out a new local branch that
hint: will track its remote counterpart, you may want to use
hint: "git push -u" to set the upstream config as you push.
hint: Disable this message with "git config advice.setUpstreamFailure false"
解决方式:
git branch --set-upstream-to=origin/master develop
远程仓库没有develop分支