Glossary

What is Git branch?

Last updated June 15, 2026
Reviewed by Better-PaaS team

A named line of source code history used for deployment. Learn what Git branch means in self-hosted deployment and Better-PaaS workflows.

Overview

A named line of source code history used for deployment.

Definition

A named line of source code history used for deployment.

Real-world example

Connect repo my-saas, deploy branch main for production and branch staging for preview, each with different DATABASE_URL values.

Common mistake

Deleting a branch that is still configured as the deploy target, causing webhook failures.

Better-PaaS in practice

Branch is set per app in Git settings. Webhooks typically fire only for the configured branch.

FAQ

Is Git branch only relevant to Better-PaaS?

No. Git branch appears across Docker, cloud platforms, and self-hosted tooling. Better-PaaS exposes the concept in deploy logs, dashboard fields, or docs when it affects your app.