Dev workflow and DevOps · Concept

Branches and pull requests

A branch is a separate line of work inside a repository; a pull request asks for that work to be reviewed and merged into the main code.

Code and collaboration · updated

How it works

A developer creates a branch from main, commits a feature or fix to it and opens a pull request (GitLab calls it a merge request). Reviewers read the changes line by line and comment, while automated checks run the tests. Once approved, the branch is merged: its commits kept as they are, squashed into one, or rebased onto main.

Branch protection rules can require reviews and passing checks before anything reaches main. Many teams prefer short-lived branches merged within a day or two (trunk-based development), which keeps conflicts small. Hosts such as Vercel and Netlify deploy every pull request to its own preview URL, so anyone can try a change before it ships.

More in Dev workflow and DevOps

Code and collaboration

All 21 Dev workflow and DevOps terms

Crafted in the dark. Shipped to the world.

Tell us what you are building. You get a private project space with a proposal and a line-by-line quote within a day.