Git · Senior · Question 66 of 76
What is a "dangling commit"?
- 1A commit with no parent commits
- ✓Correct answer: A commit no ref or reflog entry points to
- 3A commit that failed to push to the remote
Explanation
Dangling objects appear after amends, rebases or dropped stashes. git fsck --lost-found lists them, and gc eventually prunes them.