This Standard Operating Procedure (SOP) defines the Git branching strategy for managing the software development lifecycle (SDLC) across Development, Staging, and Production environments. Adhering to this strategy ensures code stability, facilitates collaboration, and minimizes deployment risks.
For most Wraptron client projects (web, mobile, SaaS, ERP), 3–4 environments work best.
| Environment | Purpose | Who uses it |
|---|---|---|
| Local / Dev | Feature development | Developers |
| Staging / QA | Integration testing, UAT | QA, internal team, client |
| Production | Live system | End users |
These branches are permanent and exist throughout the project lifecycle.
main (Production):
release, patch or hotfix branches.staging (Pre-Production):
develop.develop (Development):
These branches are created for specific tasks and deleted after merging.
Feature Branches (feature/*):
developdevelopfeature/ticket-ID-short-description (e.g.,
feature/JIRA-101-user-login)Bugfix Branches (bugfix/*):
developdevelopbugfix/ticket-ID-short-descriptionHotfix Branches (hotfix/*):
mainmain AND develop (and staging if active)hotfix/incident-ID-descriptionRelease Branches (release/*):
developdevelop AND staging (and main if active)release/v{major}.{minor}.{patch}develop.
git checkout develop
git pull origin develop
git checkout -b feature/new-feature
origin.feature/new-feature into develop.develop and delete the feature branch.When the team decides to prepare a release:
develop into staging.staging triggers deployment to the Staging
environment.develop (or a specific release branch)
and re-sync to staging.Once the release candidate on Staging is stable and approved:
staging into main.v1.0.0).develop.main.
git checkout main
git pull origin main
git checkout -b hotfix/critical-bug
main: Merge to deploy the fix to Production.develop: Merge to ensure the fix exists in future releases.staging: If staging is currently active/diverged.develop into their feature
branches to minimize merge conflicts.develop without at least one approval.develop, staging, and
main.gitGraph
commit
branch develop
checkout develop
commit
branch feature
checkout feature
commit
commit
checkout develop
merge feature
branch staging
checkout staging
merge develop
checkout main
merge staging tag: "v1.0.0"
| Role | Access |
|---|---|
| Junior Dev | feature branches |
| Senior Dev | develop |
| Tech Lead / CTO | main |
| CI Bot | deploy permissions |
Approved By: Brahma Rishi
Effective From: 2026-02-01
Address: Alsa Sheridan, 12-B, Sridharan St, Ayyavoo Colony, Aminjikarai, Chennai, Tamil Nadu 600029
Address: S-23, SIPCOT Industrial park, Pillaipakkam, Tamil Nadu 602105
Address: SP-153 2nd Floor, 9th Ln, near Coffee Day, Ambattur Industrial Estate, Chennai, Tamil Nadu 600058
12-B, Alsa Sheridan, Sreedharan Street,
Aminjikarai, Chennai-29,
Tamilnadu,
India