This is my project structure:
|-- __main__.py
|-- __pycache__
`-- audios
|-- keywords
| |-- foo1.wav
| `-- foo2.wav
`-- target_audio
|-- bar1.wav
`-- bar2.wav
I have added *.wav
to my .gitignore
:
.idea
__pycache__/
*.wav
This is resulting in the whole directory tree under audios/
getting ignored. I am assuming that since all the files in the directories are being ignored, the directory as a whole is being ignored by git. But I want to keep the directory structure along with the repository. How do I do that?