Git · Junior · Question 70 of 75

Which statement about deleting a branch is true?

Explanation

A branch is only a pointer. Merged commits are part of main's history; unmerged ones become unreachable and are eventually garbage-collected, but the reflog keeps them for a while.

Further reading

Problem with a question

Git · Junior · question 70

Test yourself

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

Take this quiz