Git · Senior · Question 54 of 76
What is a symbolic ref?
- 1A ref that points to a file instead of a commit
- 2A ref whose name uses symbols instead of letters
- ✓Correct answer: A ref that points to another ref, like
HEAD
Explanation
.git/HEAD contains ref: refs/heads/main. When it contains a hash instead, you're in detached HEAD state. origin/HEAD is also symbolic, pointing to the remote's default branch.