A Git branch is a lightweight, movable pointer to a specific commit, giving developers an isolated line of development they can work on without affecting the main codebase.
A developer runs git checkout -b feature/user-profile to start a new feature; all commits made afterward belong to that branch until it's merged back into main.
git branch feature/user-profile
git checkout feature/user-profile
# or in one step
git checkout -b feature/user-profileA concise interview answer is
A Git branch is a movable pointer to a commit that lets you develop in isolation from main. It's lightweight to create, and once the work is reviewed and merged, the branch is usually deleted to keep the repository clean.
Last updated: 16 July 2026
Previous question: What is a Git commit?
Next question: What is a Git merge?