Skip to content

Conversation

jamesmyatt
Copy link
Contributor

@jamesmyatt jamesmyatt commented Oct 2, 2020

Data files are still git-ignored by default, but some files, like .gitkeep, .gitignore and *.dvc, should not be ignored by default.

Note that this doesn't required git or DVC but it does improve support for them.

@Laurence-Technologist
Copy link

Lgtm.

!.gitkeep

# Include DVC files
!*.dvc
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I like putting a .gitignore inside data/. I think it's better to keep these rules in the repo-root-level .gitignore and not mix this into the data directory. This is going to end up getting caught up syncing to the cloud, etc.

Comment on lines +1 to +6
# Ignore all files in all sub-directories by default
# but not the sub-directories themselves
# and not files in this directory
**/*
!**/
!/*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Git only tracks files and not directories, so there's no point in trying to have an include rule for directories.

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.

3 participants