gitignore all files with file type in all directories code example Example: git ignore all files and folders in folder * */ !.gitignore