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?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityIf 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?
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.
b
l
too much work for you? Or are you writing a lisp function? Also, it'scheckout
, notchekcout
. – choroba Jul 16 '18 at 12:16