A branch in Git is a separate line of development. It allows you to work on different features or bug fixes independently of the main codebase.
Example Code:
# Create a new branch
git branch feature-branch
# Switch to the new branch
git checkout feature-branch