#!/bin/bash # GitHub Setup Script for PetBot # Run this script after creating your GitHub repository echo "🚀 PetBot GitHub Setup" echo "======================" # Check if we're in a git repository if [ ! -d ".git" ]; then echo "❌ Error: Not in a git repository" exit 1 fi # Ask for GitHub repository URL echo "📝 Please enter your GitHub repository URL:" echo " (e.g., https://github.com/yourusername/petbot-irc-game.git)" read -p "URL: " REPO_URL if [ -z "$REPO_URL" ]; then echo "❌ Error: No URL provided" exit 1 fi # Add remote origin echo "🔗 Adding GitHub remote..." git remote add origin "$REPO_URL" # Push to GitHub echo "⬆️ Pushing to GitHub..." git push -u origin main # Push tags echo "🏷️ Pushing tags..." git push --tags echo "✅ Setup complete!" echo "" echo "🎯 Your repository is now on GitHub:" echo " Repository: $REPO_URL" echo " Current version: v0.1.0" echo "" echo "🔄 Future updates will be automatic:" echo " - Claude will commit changes with descriptive messages" echo " - Changelog will be updated automatically" echo " - Version tags will be created for releases" echo " - All changes will be pushed to GitHub"