BLUPI

STAGING → PRODUCTION WORKFLOW
Current Staging: main
Current Production: production
A

Express Updates

Use this for quick bug fixes or content tweaks made directly on the main branch.

Step 1: Save Staging

git add .
git commit -m "quick fix"
git push origin main

Step 2: Deploy to Prod Branch

git checkout production &&
git pull origin production &&
git merge main &&
git push origin production &&
git checkout main

This chains commands so they only run if the previous one succeeds.

B

Feature Branches

For substantial changes, restyles, or experimental code that needs isolation.

1. Create & Work

git checkout -b feature-name

2. Merge to Staging

git checkout main
git merge feature-name
git push origin main

To Go Live:

Follow Track A: Step 2 above.

!

Production Pull

Run in your Production Replit

git pull origin production

Restart server after pulling

Common "Git Oopsies" Fixes

Error: "Updates were rejected"

Your computer is behind GitHub. Pull first!

git pull origin production

Error: "Unrelated histories"

Force the branches to talk to each other.

git pull... --allow-unrelated-histories
Copied to Clipboard