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
This seems to be a better idea
find . -type l | sed -e s'/^\.\///g' >> .gitignore
Find outputs a "./" prefix for all files. Unless you trim it off, gitignore is unable to act on them . Once you trim the ".\" at the beginning , it works like a charm