Git · Middle · Question 38 of 75

How do you create a branch from a stash?

Explanation

It checks out the commit the stash was made on, creates the branch and applies the stash there, avoiding conflicts when the original branch has moved on.

Further reading

Problem with a question

Git · Middle · question 38

Test yourself

Take the Git · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz