gitignore all files with name in all directories code example
Example 1: git exclude folder
directory_to_exclude/
Example 2: gitignore all files and folders in only one folder
*
*/
!.gitignore
directory_to_exclude/
*
*/
!.gitignore