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
My answer from another question is relevant:
for f in $(git status --porcelain | grep '^??' | sed 's/^?? //'); do test -L "$f" && echo $f >> .gitignore; test -d "$f" && echo $f\* >> .gitignore; done