The best I came up with was running this after an composer install/update


    $ find * -type l -not -exec grep -q "{}" .gitignore \; -print >> .gitignore

The command should be run in the git root directory. It adds all symlinks to the .gitignore file that aren't in there already.