Skip to content

dvc and git does not behave the same with "!" and "**" #6995

Open
@Danial-Alh

Description

@Danial-Alh

Consider the following project structure

  • data
    • data1
      • file1
      • file1.dvc
    • data2
      • file2
      • file2.dvc
  • .gitignore

.gitignore is as follows:

data/**
!data/*/
!*.dvc

git status gives:
image

while dvc push gives:
image

I expect to git and dvc behave the same with gitignore.

  • dvc: 2.8.3
  • python: 3.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDid we break something?gitRelated to git and git backends

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions