56 lines
1.4 KiB
Bash
Executable File
56 lines
1.4 KiB
Bash
Executable File
#!/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 <url-de-votre-repo>"
|
|
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)"
|