Create .gitignore even if inside existing repository #6357
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Command-new
S-needs-team-input
Status: Needs input from team on whether/how to proceed.
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 thetarget
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 createdThe text was updated successfully, but these errors were encountered: