This question has appeared in similar forms here and here, but they don\'t seem to match up with what I\'m looking for.
I\'m making a project in StaticMatic, a Ruby
If you really want to ignore a filename if it's a symlink or file but not if it is a directory, you can add to .gitignore :
/media
!/media/
To formulate it like @Chris_Rasys, this will :