Git · Senior · Question 6 of 76

Why can a commit that's no longer on any branch still be recovered?

Explanation

Reflog entries count as references for gc, by default 90 days for reachable and 30 for unreachable entries. After that the objects become prunable.

Further reading

Problem with a question

Git · Senior · question 6

Test yourself

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

Take this quiz