Git · Senior · Question 54 of 76

What is a symbolic ref?

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.

Further reading

Problem with a question

Git · Senior · question 54

Test yourself

Take the Git · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz