Git · Senior · Question 3 of 76

What is a ref in Git internally?

Explanation

Refs live as small files or in packed-refs. HEAD is a symbolic ref pointing to another ref. Moving a branch is just writing a new hash into its ref.

Further reading

Problem with a question

Git · Senior · question 3

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