Skip to content

File being ignored even though it's committed #66

Open
@someplaceguy

Description

If you have a git repository that contains a file that is committed but matches a .gitignore rule, it will be checked out by git but not by gitignore.nix.

Example repository:

git init test
cd test
mkdir dir
touch dir/file
git add dir/file
git commit -m test
echo 'dir/*' > .gitignore
git add .gitignore
git commit -m test2

If you clone this repository with git, dir/file will be checked out inside the cloned repo.

However, if you use gitignore.nix, it will filter dir/file, thus resulting in what appears to be an empty repository...

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions