This project follows a strict branching strategy to ensure the stability of the Live application while allowing for rapid development of new features.
- Do not push directly to this branch.
- This branch contains the code currently deployed to the live website (trueharvest.world).
- Only merge into
mainwhen a feature is 100% tested and ready.
- All new development happens here.
- When you are working on the app, ensure you are on this branch:
git checkout dev
- Pushing to this branch creates a "Preview Deployment" (if using Vercel/Netlify) that you can share for testing.
-
Start coding: Ensure you are on the dev branch.
git checkout dev npm run dev
You will see a "DEV MODE" badge in the app header.
-
Save your changes:
git add . git commit -m "Added new feature: ..." git push origin dev
-
Go Live: When you are ready to update the real website:
git checkout main git merge dev git push origin main git checkout dev # Always go back to dev immediately!
If moving this code to a new GitHub repository:
# 1. Point to new repo
git remote set-url origin https://github.com/YourUsername/new-repo.git
# 2. Push Live State
git push -u origin main
# 3. Create and Push Dev State
git checkout -b dev
git push -u origin dev