Branch Pointer Concept
Concept Check Medium
Question
Internally, what is a branch in Git?
Hint
Branches are just pointers — that is why they are fast.
Explanation
A branch is simply a lightweight pointer to a commit. When you commit on a branch, Git creates the commit and moves the branch pointer to it. This is why creating and switching branches is nearly instantaneous — no files are copied, only a pointer is moved or created.
Related Resources
Related Lessons
Related Cheatsheets
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.