У меня есть такие папки:
/foo/one.txt
/foo/bar/two.txt
/foo/other/three.txt
Я хочу исключить все в папке /foo/, кроме подпапки /foo/bar/. Как я могу это сделать?
С помощью этого .gitignore мне удалось исключить «другую» подпапку, но файл «one.txt» все еще включен.
/foo/*
!/foo/bar/