I have these files:
Static/Images/img1.png
Static/Images/img2.jpg
Static/Files/file1.pdf
Static/Files/file2.docx
And I want to store the directory structure, meaning:
Static
Static/Images
Static/Files
But I don't wanna store these files, because they are just a repository of unnecessary static files. On the other hand, storing the directory structure is important for me.
I tried many things, searched a lot, but I wasn't successful. Gitignore is harder than seem.
Some tries:
1.
Static/Images/*
Static/Files/*
2.
Static/Images/**
Static/Files/**
3.
Static/*
!Static/Images/
!Static/Files/