docs: add critical git workflow rule - never push to production without explicit instruction

This commit is contained in:
Graham McIntire 2026-03-06 17:09:52 -06:00
parent d5b0f38ed6
commit 7f7e289325
No known key found for this signature in database

View file

@ -266,6 +266,12 @@ Towerops uses branch-based deployment with Forgejo CI/CD:
### Deploying Changes
**CRITICAL GIT WORKFLOW RULE:**
- **ALWAYS** push to `main` after commits (default behavior)
- **NEVER** push to `production` unless explicitly instructed by the user
- Production deployments must be manually authorized each time
- When in doubt, only push to `main`
**To staging:**
```bash
git push origin main
@ -273,7 +279,7 @@ git push origin main
# Watch: https://git.mcintire.me/graham/towerops-web/actions
```
**To production:**
**To production (ONLY when explicitly requested):**
```bash
# Merge main → production
git checkout production