Skip to content

Default gitignore is too restrictive #4560

@mgsx-dev

Description

@mgsx-dev

gitignore file generated by gdx setup have undesirable side effects : any folder you want to track with git (including java package) which is named "war", "build", "out" or "bin" will be ignored. Note that I discovered this issue creating a "war" game with a "war" package name somewhere, so other developers may face the same problem.

IMO best practice is to avoid recursive path in gitignore as much as possible (all path without a leading slash are processed recursively).

My proposal would be to keep some global recursive ignore in the root file (*.class, *.project ...) and dispatch specific parts to related sub-project : For instance, "war/" would be replaced by "/war" and moved to web sub-project.

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