Challenge 1
Complete the Git command to find a symbolic commit name.
git HEAD~1
Press Ctrl⌘Enter to check your answer
Create a disposable repository with at least three commits, a branch, and a tag. Then run the following workflow. Record which symbolic name Git chooses for `HEAD~1`, compare branch-based naming with `--tags`, restrict the candidates with `--refs`, and finally annotate a line containing the current commit ID. Expected learning outcome: you can explain why the reported name depends on the candidate refs, and you can distinguish a symbolic description from an actual ref stored in the repository.
Challenge 1
git HEAD~1
Press Ctrl⌘Enter to check your answer
Challenge 2
git --tags HEAD~1
Press Ctrl⌘Enter to check your answer
Challenge 3
git --refs='refs/heads/*' HEAD~1
Press Ctrl⌘Enter to check your answer
Challenge 4
git
Press Ctrl⌘Enter to check your answer