Skip to content

Fix .gitignore ignoring /data/ folder#479

Open
ildnomde wants to merge 2 commits intodrivendataorg:masterfrom
ildnomde:master
Open

Fix .gitignore ignoring /data/ folder#479
ildnomde wants to merge 2 commits intodrivendataorg:masterfrom
ildnomde:master

Conversation

@ildnomde
Copy link
Copy Markdown

@ildnomde ildnomde commented Apr 8, 2026

Why

Currently git ignores the data directory, even though there are .gitkeep file inside the /data/ subfolders.
This means that separate users will need to manually recreate the data folder and subfolders.

This is mentioned in a separate pull request: #223

What changed

Modified the existing .gitignore line to use a fix outlined in the article: https://stackoverflow.com/questions/46301811/gitignore-all-files-in-folders-but-keep-folder-structure

from

# Data
/data/

to

# Data
/data/**
!/data/**/
!/data/**/.gitkeep

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant