#!/bin/bash # Script d'initialisation Git pour NationsGlory echo "🚀 Initialisation du dĂ©pĂŽt Git NationsGlory" echo "" # Initialiser le dĂ©pĂŽt if [ ! -d .git ]; then git init echo "✓ DĂ©pĂŽt Git initialisĂ©" else echo "⚠ DĂ©pĂŽt Git dĂ©jĂ  existant" fi # Ajouter les fichiers git add docker-compose.yml git add .gitignore git add .env.example git add DEPLOY_README.md git add DEPLOYMENT_CHECKLIST.md git add README.md 2>/dev/null git add init-git.sh git add mcpc.jar git add mods/ git add plugins/*.jar git add config/ git add Flan/ 2>/dev/null git add customnpcs/ 2>/dev/null echo "✓ Fichiers ajoutĂ©s au staging (incluant mcpc.jar - 29MB)" echo "" echo "Fichiers prĂȘts Ă  ĂȘtre commitĂ©s:" git status --short echo "" echo "📊 Taille du dĂ©pĂŽt:" du -sh .git 2>/dev/null || echo "~53 MB (avec mcpc.jar)" echo "" echo "📝 Prochaines Ă©tapes:" echo "1. Configurer Git:" echo " git config user.name 'Votre Nom'" echo " git config user.email 'votre@email.com'" echo "" echo "2. Faire le premier commit:" echo " git commit -m 'Initial commit - NationsGlory 1.6.4 (mcpc.jar inclus)'" echo "" echo "3. Ajouter le remote:" echo " git remote add origin " echo "" echo "4. Pousser vers GitHub/GitLab:" echo " git branch -M main" echo " git push -u origin main" echo "" echo "⚠ Note: Le premier push prendra ~1-2 minutes (53 MB Ă  uploader)"