5

When viewing the commit log, can I select a commit and checkout that commit as the head of a new branch?

1 Answer 1

8

In a magit-log buffer, place your cursor over the commit you want to branch from and run M-xmagit-branch-and-checkoutenter. You'll be prompted for a branch name, then for a starting point, the default starting point will be the branch under your cursor so you can just hit enter.

1
  • 4
    b B should run that command as well.
    – npostavs
    Commented Jul 23, 2015 at 3:06

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.