Togmal-demo / quick_push.sh
HeTalksInMaths
Port chat integration changes onto main (rebase strategy)
5fd9547
#!/bin/bash
# Quick Push to HuggingFace + GitHub
# Usage: ./quick_push.sh "Your commit message"
cd /Users/hetalksinmaths/togmal/Togmal-demo
MESSAGE="${1:-Update demo}"
echo "════════════════════════════════════════════════════"
echo " Quick Push: HuggingFace + GitHub"
echo "════════════════════════════════════════════════════"
echo ""
echo "πŸ“ Commit message: $MESSAGE"
echo ""
# Add all changes
git add .
# Commit
git commit -m "$MESSAGE" || echo "ℹ️ Nothing new to commit"
echo ""
echo "πŸš€ Pushing to both platforms..."
echo ""
# Push to HuggingFace (origin)
echo "1️⃣ Pushing to HuggingFace Spaces..."
git push origin main
if [ $? -eq 0 ]; then
echo " βœ… HuggingFace updated!"
echo " 🌐 https://huggingface.co/spaces/JustTheStatsHuman/Togmal-demo"
else
echo " ❌ HuggingFace push failed"
fi
echo ""
# Push to GitHub
echo "2️⃣ Pushing to GitHub..."
# Check if github remote exists, if not add it
if ! git remote | grep -q "github"; then
echo " ℹ️ Adding GitHub remote..."
git remote add github https://github.com/HeTalksInMaths/togmal-mcp.git
fi
git push github main
if [ $? -eq 0 ]; then
echo " βœ… GitHub updated!"
echo " πŸ™ https://github.com/HeTalksInMaths/togmal-mcp"
else
echo " ❌ GitHub push failed"
echo " πŸ’‘ You may need to authenticate with PAT"
echo " Get token at: https://github.com/settings/tokens"
fi
echo ""
echo "════════════════════════════════════════════════════"
echo " ✨ Done!"
echo "════════════════════════════════════════════════════"