Branches provide isolated development paths
GitHub displays Git branches and provides a web interface for creating, comparing and managing them. A common workflow keeps main stable while feature branches contain proposed changes.
Branch naming
Use names that communicate intent, such as feature/search, fix/payment-timeout or docs/setup. Consistent names make repository activity easier to scan.
Protect important branches
Do not rely only on team discipline for critical branches. Repository rules can require pull requests, successful checks, approvals and other conditions before changes are merged.