0

I clone git project. Current branch is main. Nice. Now I want to create new branch: my-branch

Magit Branch Read Upstream First: Value Menu read upstream first

I try this:

magit-branch-create

Create branch starting at (default  main): my-branch

But I get error:

Not a valid starting-point: my-branch
1

Read the pieces of text that you are quoting more carefully.

You are being asked to type the name of an existing branch but you type the name of the branch that you want to create. Providing the wrong information results in an error message, which again informs you that you were supposed to enter the name of an existing branch.

You are not the only person who finds it more natural to provide the name of the new branch first, so magit provides an option that controls the input order. You have already found it:

Magit Branch Read Upstream First: Value Menu read upstream first

Change the value of this option and then you can use the order that you want to use.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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