Skip to main content
4 of 5
Remove the leading ./ from the symlinks that find finds.
Vinai
  • 14.1k
  • 2
  • 43
  • 83

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.

Vinai
  • 14.1k
  • 2
  • 43
  • 83