0

If I need to create new branch and checkout to it I use two commands:

1.magit-branch
2.magit-branch-checkout

Is it possible by one command to create AND checkout to new branch?

  • Is pressing b l too much work for you? Or are you writing a lisp function? Also, it's checkout, not chekcout. – choroba Jul 16 '18 at 12:16
5
magit-branch-and-checkout

From the manual:

b c
(magit-branch-and-checkout)
This command creates a new branch like magit-branch, but then also checks it out.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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