In Git's commit graph, what is a branch?
Which description fits a Git commit?
main points to commit C. Creating feature at C adds a branch label but no new commit.
Circle one: True False
feature points to C. You check out C using its commit ID. What happens to HEAD?
Start with only root commit A, main at A and HEAD pointing to main. Make ordinary commit B, create feature at B, switch to feature, then make ordinary commit C. Which record gives all commit-to-parent arrows and the final pointers?
main stays at C. With HEAD detached at C, you make D and then E. No branch leads to D or E. You switch to main. What is the risk?
A merge commit with two parents creates a directed cycle in Git's commit graph.
Circle one: True False
HEAD is detached at H. H has parent G, and G has parent F. You want to return to main while keeping this history easy to find. What should you do before switching?