Filter function to exclude the .git directory and its contents while keeping other files like .gitignore
Filter function to exclude the .git directory and its contents while keeping other files like .gitignore