From 150d81882776c05fa6c3166e0bfa0ac78111d5dd Mon Sep 17 00:00:00 2001 From: Leonid Pershin Date: Fri, 8 May 2026 01:11:42 +0300 Subject: [PATCH] Update .gitignore to allow specific directories and files for client and server while ignoring everything else in the instance root --- .gitignore | 46 +++++++++++++++++++++++++++++++++++++++------- 1 file changed, 39 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 644a053..41b3e04 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,39 @@ -saves/ -Server/world/ -Server/logs/ -Server/eula.txt -options.txt -logs/ -Server/crash-reports/ +# Whitelist-only: игнорируем всё в корне инстанса, кроме перечисленного ниже +/* + +!.gitignore + +# --- Клиент (корень инстанса) --- +!/config/ +!/mods/ +!/resourcepacks/ +!/shaderpacks/ + +!/manifest.json +!/minecraftinstance.json +!/modlist.html +!/PupaMLupa.json +!/TLauncherAdditional.json +!/.curseclient + +!/config/** +!/mods/** +!/resourcepacks/** +!/shaderpacks/** + +# --- Сервер --- +!/Server/ + +/Server/* +!/Server/config/ +!/Server/mods/ +!/Server/install_java.ps1 +!/Server/install_java.sh +!/Server/start.bat +!/Server/start.ps1 +!/Server/start.sh +!/Server/variables.txt +!/Server/manifest.json + +!/Server/config/** +!/Server/mods/**