Git · Junior · Question 70 of 75
Which statement about deleting a branch is true?
- ✓Correct answer: Commits stay in history if another branch or tag reaches them
- 2The branch is moved to a trash folder for 30 days
- 3All commits of the branch are deleted from every clone
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.