Question 1 of 14
Git Revision Selection and Ancestry Queries Quiz
Check advanced revision selectors, merge-parent shorthands, range algebra, object and message selection, and ancestry-focused history traversal.
Knowledge check
Git Revision Selection and Ancestry Queries Quiz
Check advanced revision selectors, merge-parent shorthands, range algebra, object and message selection, and ancestry-focused history traversal.
- Stuck? Each question has an optional hint.
- Skip a hard question and review it before your results.
- Questions and answer options can shuffle between attempts.
You can retake this quiz whenever you like.
Question 2 of 14
What does `MERGE~2` follow?
Question 3 of 14
What does `MERGE^@` name?
Question 4 of 14
What does `MERGE^!` select?
Question 5 of 14
Which expression is equivalent to `MERGE^2..MERGE`?
Question 6 of 14
What does `v1^{commit}` do when v1 is an annotated tag pointing to a commit?
Question 7 of 14
What does `:/fix parser` identify?
Question 8 of 14
What does `HEAD:README.md` name?
Question 9 of 14
For history-walking commands, what is `A...B`?
Question 10 of 14
What is `A..B` shorthand for?
Question 11 of 14
What does `git diff A...B` mean?
Question 12 of 14
What does `--ancestry-path` do to a range such as `D..J`?
Question 13 of 14
What does `--first-parent` do at a merge?
Question 14 of 14
Why use `git rev-parse --verify R^{commit}` in a script?
Quiz results
Review
-
What does `MERGE^2` select on a two-parent merge commit?Hint used
-
What does `MERGE~2` follow?Hint used
-
What does `MERGE^@` name?Hint used
-
What does `MERGE^!` select?Hint used
-
Which expression is equivalent to `MERGE^2..MERGE`?Hint used
-
What does `v1^{commit}` do when v1 is an annotated tag pointing to a commit?Hint used
-
What does `:/fix parser` identify?Hint used
-
What does `HEAD:README.md` name?Hint used
-
For history-walking commands, what is `A...B`?Hint used
-
What is `A..B` shorthand for?Hint used
-
What does `git diff A...B` mean?Hint used
-
What does `--ancestry-path` do to a range such as `D..J`?Hint used
-
What does `--first-parent` do at a merge?Hint used
-
Why use `git rev-parse --verify R^{commit}` in a script?Hint used