Update .gitignore to allow specific directories and files for client and server while ignoring everything else in the instance root

This commit is contained in:
Leonid Pershin
2026-05-08 01:11:42 +03:00
parent f2ca12a0a8
commit 150d818827
+39 -7
View File
@@ -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/**