Skip to content

Ignore /target instead of any target #3997

@behnam

Description

@behnam

When creating a .gitignore file with this line:

target

it will ignore any file/dir named target anywhere in the repo. Meaning, this would also ignore /src/target/, a submodule, and all its content.

To resolve this problem, we should instead ignore the target dir on the top level:

/target

and, if we want to make sure it's only ignored if a dir:

/target/

What do you think?

Metadata

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