OpenCodeHub supports various workflows to suit your team's size and velocity.
Best for: Small Teams, Open Source, Linear History
This is the classic workflow used by most teams on GitHub/GitLab.
gitGraph
commit
commit
branch feature/login
checkout feature/login
commit id: "Dev 1"
commit id: "Dev 2"
checkout main
merge feature/login
commit id: "Release"
- Main Branch: Always contains production-ready code.
- Feature Branch: Created from
mainfor specific tasks (feat/login). - Pull Request: Opened against
main. Changes are reviewed. - Merge: Once approved, squashed or merged into
main.
Best for: Large Teams, Complex Features, Fast Paced
Instead of one massive PR, you break a feature into a chain of dependent PRs.
gitGraph
commit
branch feat/schema
checkout feat/schema
commit id: "DB Schema (PR#1)"
branch feat/api
checkout feat/api
commit id: "API Layer (PR#2)"
branch feat/ui
checkout feat/ui
commit id: "Login UI (PR#3)"
checkout main
merge feat/schema
checkout feat/api
merge main
checkout feat/ui
merge feat/api
- PR #1 (Schema): Base layer. Submitted for review.
- PR #2 (API): Created from
feat/schema. Submitted immediately. - PR #3 (UI): Created from
feat/api. Submitted immediately.
Benefits:
- 🚀 Zero Blocking: Don't wait for PR #1 review to start PR #2.
- 📦 Atomic Review: Reviewers see small, logical changes.
- 🤖 Auto-Rebase: OpenCodeHub handles the complex Git operations automatically.
Best for: Strict Release Cycles, Versioned Software
gitGraph
commit
branch develop
checkout develop
commit
branch feature/A
commit
checkout develop
merge feature/A
branch release/v1.0
commit id: "Bump Version"
checkout main
merge release/v1.0 tag: "v1.0"
checkout develop
merge release/v1.0
- Main: Only for official releases.
- Develop: Integration branch for next release.
- Feature: Created from
develop. - Release: Created from
developwhen feature-complete. Merged tomainanddevelop.
| Feature | Feature Branch | Stacked PRs | Gitflow |
|---|---|---|---|
| Complexity | Low | Medium | High |
| Velocity | Medium | High | Low |
| Review Quality | Low (Big PRs) | High (Small PRs) | Medium |
| CI Cost | Low | Low (Batched) | High |