I have a website project that has more than 50,000 unimportant files (to development) in some directories.
/website.com/files/1.txt /website.com/files/2.txt
Ok Ive found a solution. Simply create a new repo in the sub directories and the parent repo will ignore them.