Git Methodology
Git Methodology¶
-
We follow a main / dev / feature branching strategy:
- main: always stable & deployed.
- dev: integration branch where features are merged.
- feature/name: each new feature or fix has its own branch.
-
Workflow:
- Switch to latest dev branch
- Pull latest dev.
- Create a feature/* branch.
- Do your changes
- Run tests
- Stage & Commit(conventional commits)
- Pull latest dev to your feature branch
- Push changes.
- Open a Pull Request (PR) into dev.
- After review & testing, merge dev to main.
-
Code Quality Checks:
- Run ESLint (npx eslint . --fix) and Jest tests (npm test) before pushing.
- GitHub Actions runs CI(tests & lint) checks on every PR.
- After review, merge dev → main for releases
-
Rules:
- No direct commits to main.
- All code goes through PR review.
- Netlify auto-deploys from main.