the command
git branch --set-upstream-to develop origin/develop
results in the error
fatal: branch 'origin/develop' does not exist
I am not sure what this means other than origin develop does not exist. Does that mean it doesn't exist on the server or on my local machine?
I am a git newbie but I am in the process of setting up my site to handle deployments with git as a means to learn git.
First make sure you are at develop
branch.
Then just use git branch --set-upstream-to origin/develop
Git defines git branch --set-upstream-to <upstream> [<branchname>]
.
Here <upstream>
specifies the remote branch and [<branchname>]
is the local branch name and if you no branch is specified, it defaults to the current branch.
So, it should be git branch --set-upstream-to origin/develop develop
-u
is interchangeable with --set-upstream-to
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With