BLUPI

GIT DEPLOYMENT & LEARNING
A

Standard Deploy

Step 1: Save Staging

git add . && git commit -m "update" && git push origin main

Step 2: Push to Production Branch

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

Health Check

If screen is blank but console is "running":

1. Hard Refresh (Browser)

Browser cache often hides new styles. Use Cmd + Shift + R.

2. Restart Command

Forces the server to stop and restart completely.

kill -9 -1
!

Standard Pull

Run in Production Replit

git pull origin production

Standard Update Procedure

!

Emergency Fix

Force Mirror (Ghost Typo Fix)

Run in Staging to force Prod to match Main exactly.

git checkout production &&
git reset --hard main &&
git push origin production --force &&
git checkout main
X

Force Pull

Run in Production to overwrite everything with GitHub's version.

git fetch origin &&
git reset --hard origin/production

Only if Standard Pull fails

Copied to Clipboard