Skip to content

Create .gitignore even if inside existing repository #6357

@vbrandl

Description

@vbrandl

Describe the problem you are trying to solve

When creating a new cargo project using the cargo new subcommand inside an existing git repository, cargo does not create a .gitignore file. That way, also the target directory will be tracked by git.

Describe the solution you'd like

Even if a new project is created inside another git repository, the .gitignore file should still be created

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-newS-needs-team-inputStatus: Needs input from team on whether/how to proceed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions