This is my folder structure:
data/ .gitignore uploads/ .gitignore
I would like to commit the folders but not the files insi
The solution is quite easy, add !*/ to the .gitignore files and only files in the current folder will be ignored
!*/
# Ignore everything in this directory * # Except this file !.gitignore # Except folders !*/