This repository contains the Octagon Predict (VeChain UFC Market) project with automated workflows for syncing code from Replit to Git.
- octagon-predict/ - Main git-controlled project directory
- merge-replit-code.sh - Automated merge script for Replit exports
When you download a new ZIP export from Replit:
-
Unzip the file in
/Users/mhess/octagon-predict/cd /Users/mhess/octagon-predict unzip Fight-Predictor-X.zip -
Run the merge script
./merge-replit-code.sh Fight-Predictor-X "Optional custom commit message"
That's it! The script will:
- ✓ Sync all files (excluding .git, .local, node_modules, dist)
- ✓ Stage changes
- ✓ Create a commit
- ✓ Push to GitHub
If you prefer to do it manually:
# 1. Sync files
rsync -av --exclude='.git' --exclude='.local' --exclude='node_modules' --exclude='dist' \
Fight-Predictor-X/ octagon-predict/
# 2. Commit and push
cd octagon-predict
git add -A
git commit -m "Update: Your commit message"
git push./merge-replit-code.sh <source-folder> [commit-message]Parameters:
source-folder(required) - Name of the unzipped Replit foldercommit-message(optional) - Custom commit message (default: "Update: Sync latest code from Replit")
Examples:
# Basic usage with default commit message
./merge-replit-code.sh Fight-Predictor-2
# With custom commit message
./merge-replit-code.sh Fight-Predictor-3 "Add VeChain wallet integration"GitHub Repository: https://github.com/somarc/octagon-predict
SSH Configuration: Uses github.com-somarc host alias with id_ed25519_somarc key
Make sure the script is executable:
chmod +x merge-replit-code.shCheck that you've unzipped the Replit export in the correct directory:
ls -la /Users/mhess/octagon-predict/Verify your SSH key configuration:
ssh -T git@github.com-somarcShould respond with: "Hi somarc! You've successfully authenticated..."