how do i apply .gitignore rules to GNU Find invocations? for example if i have a folder with the 3 files /.gitignore and /a and /b and the .gitignore contains /a, find should only print
.
./.gitignore
./b
(Also not entirely sure if this question belongs on https://stackoverflow.com/ or https://superuser.com/ or https://unix.stackexchange.com/ )