#!/bin/bash echo "🚀 OpenClaw Hugging Face Spaces Setup" echo "=====================================" echo "" # Check if git is initialized if [ ! -d ".git" ]; then echo "📦 Initializing git repository..." git init else echo "✅ Git already initialized" fi # Set git config git config user.email "atum246@users.noreply.github.com" git config user.name "Atum246" # Check if remote is set if git remote get-url origin > /dev/null 2>&1; then echo "✅ Git remote already set to: $(git remote get-url origin)" else echo "⚠️ No git remote set. Adding..." git remote add origin https://github.com/Atum246/openclaw-huggingface.git fi # Add all files echo "" echo "📝 Adding files to git..." git add . # Commit echo "" echo "💾 Committing changes..." git commit -m "Initial OpenClaw Hugging Face Spaces setup with auto-backup" echo "" echo "✅ Ready to push!" echo "" echo "📌 Next steps:" echo " 1. GitHub repo: https://github.com/Atum246/openclaw-huggingface (will be auto-created)" echo " 2. Push: git push -u origin main" echo " 3. Go to Hugging Face and duplicate this Space" echo "" echo "📖 See README.md for Hugging Face deployment instructions!"