I have git 1.8.3 and a repo with 'master' and 'develop' branches.
From my local 'develop' branch, I'm trying to do the following command -
git branch -u origin/develop
and I get an error of
error: the requested upstream branch 'origin/develop' does not exist
When I check git branch -r
I see only origin/master
I'm trying to find a way to make my system recognize that there is also a origin/develop
and can't find any solution that works.
develop
already exists in the remote repository, use git fetch
to update your "remote-tracking branches" (local mirrors).
.git/config
in the section for your remote); the default is fetch = +refs/heads/*:refs/remotes/<name of remote>/*
. In some cases, configuration may be set up to fetch only one branch (specific branch name used instead of wildcard). It should be safe to change the configuration; this will allow fetching all branches.git push -u origin develop
(that takes care of what you're trying to do with your command at the same time as it pushes the branch)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