1

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
  • If you type f followed by u in the Magit status buffer should download branch info from remote, then b followed by c to start a new branch, and when prompted for a starting point try origin/release (if it knows about it it will even auto-complete)
    – jerome
    Commented Sep 7, 2023 at 17:34

1 Answer 1

0

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>.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.