I have a preexisting (github) repository with 2 branches: master and release. I successfully set my own local copy of the master branch to origin/master but when I try to set the release branch (using magit-branch-and-checkout), there is no origin/release option. The repository was initialized with magit-init, as it's a local copy.
1 Answer
Sound like you have not fetched from the remote yet.
Fetch from all remotes using F a. After that all the branches that exist on the remote, should also be available under refs/remotes/<remote>/<name>
.
f
followed byu
in the Magit status buffer should download branch info from remote, thenb
followed byc
to start a new branch, and when prompted for a starting point tryorigin/release
(if it knows about it it will even auto-complete)