I have a folder structure like this:
/some_folder
/tmp
/tmp/foo
/tmp/foo/fu *
/tmp/bar
/tmp/bar/bah *
/tmp/bar/ba *
/tmp/foobar *
/more_folders
The /tmp
directory is being used for caching and whatnot, so I want to have the folder structure under version control, but ignore all the files inside each directory.
Files will only exist in the leaf folders. That is, folders with no subfolders of their own: the starred ones in the above example.
Is my only option to set ignore *.*
on each leaf, or is there a way to ignore all files (and just the files) in the entire /tmp
subdirectory?