A branch is a separate line of development in a repository. Branches allow you to work on different features or fixes simultaneously without affecting the main codebase.
Example Code:
# Create a new branch
git branch new-feature
# Switch to the new branch
git checkout new-feature
# Create and switch to the new branch
git checkout -b new-feature