How can I find all files in a directory recursively, except those in the .git directory?
I tried the folowing: find . \! -name ".*" but that didn't work.
find . \! -name ".*"
find . -name '.git' -prune -o -print
-prune as an action will cause the matched directories to be "pruned" from the search tree, i.e. they won't be searched.
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
1 year ago