Answer the question
In order to leave comments, you need to log in
How to add the contents of a folder to .gitignore without adding the folder itself?
There is a folder in which the files generated by the application are stored, it is necessary that these files are not displayed in the repository, and the folder itself, even if there are no files yet, was visible in the repository, how can this be done?
Answer the question
In order to leave comments, you need to log in
You can use an empty .gitkeep file, in which case your .gitignore will look something like this:
/path/to/folder/*
!/path/to/folder/.gitkeep
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question