Git · Junior · Question 17 of 75

What is a branch in Git?

Explanation

A branch is a tiny file containing a commit hash; when you commit on it, the pointer moves forward. That's why creating and switching branches is instant.

Further reading

Problem with a question

Git · Junior · question 17

Test yourself

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

Take this quiz