Say I have a directory .../parent
, containing various files and subdirectories. One of this subdirectories is /parent/slave
I would like to have all the files in .../parent/slave
git-ignored, but not the directory slave
itself - i.e., someone cloning the git repository, would always find an empty slave directory.
What do I have to put into .gitignore
to achieve this?