-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore /target instead of any target #3997
Comments
So, this was not an issue before, because Keeping this issue open as a tracker for this specific of the migration. |
This is already addressed in master: cargo/src/cargo/ops/cargo_new.rs Lines 395 to 404 in 62f800f
PR: #4099 |
When creating a
.gitignore
file with this line: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:and, if we want to make sure it's only ignored if a dir:
What do you think?
The text was updated successfully, but these errors were encountered: