I have a directory structure like this:
.git/ .gitignore main/ ... tools/ ... ...
Inside main and tools, and any other directory, at an
for 2.13.3 and onwards,writing just bin in your .gitignore file should ignore the bin and all its subdirectories and files
bin