From 7f7e2893257cc073c41b1a0b466255fb1a2cce8e Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Fri, 6 Mar 2026 17:09:52 -0600 Subject: [PATCH] docs: add critical git workflow rule - never push to production without explicit instruction --- CLAUDE.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CLAUDE.md b/CLAUDE.md index 399910c2..a340cb8d 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -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