๐บ๏ธ Branch Flow with Pull Requests (PRs)
Let's assume your repo has these main branches:
css
main โ ๐ข production / stable
acceptance โ ๐ก staging / testing
backend โ ๐ต backend dev
frontend โ ๐ต frontend dev
feature/* โ ๐ง feature branches
documentationโ ๐ docs-only changes
๐ Typical Flow (Push โ PR โ Merge):
plaintext
[feature/backend-login]
โ
โผ
Pull Request
โ
โผ
[backend]
โ
โผ
Pull Request
โ
โผ
[acceptance]
โ
โผ
Pull Request
โ
โผ
[main]
โ Example Workflow
- Create a Feature Branch
git checkout backend
git pull origin backend
git checkout -b feature/backend-login
2. Do your work, commit and push:
git push origin feature/backend-login
- Open a Pull Request: From: feature/backend-login
Into: backend
Add reviewers, description, link to related issues.
- After Approval: Merge into backend, then repeat this upward:
PR from backend โ acceptance
Test/stage in acceptance
PR from acceptance โ main once stable
๐ Bonus: Directional Naming Diagram
plaintext
[feature/*] โโโถ [backend/frontend] โโโถ [acceptance] โโโถ [main]
โฒ
โ
[documentation]
๐ Each arrow is a Pull Request (PR)
โ
You only push to feature/dev branches, not main directly.
๐ก Tips
Keep main protected (require PRs + code review)
Label PRs by type: feature, fix, hotfix, docs, etc.
Automate testing in acceptance branch via CI (GitHub Actions, etc.)
Top comments (0)