-
Notifications
You must be signed in to change notification settings - Fork 2.6k
cargo new can generate a better .gitignore file #2565
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
Comments
This wouldn't be any different, all compiled files are in target? Plus, it will add the On Wed, Apr 13, 2016 at 3:48 AM, Deepak Kannan [email protected]
|
@steveklabnik ah ok. was not aware Do you think it makes sense to change the generated
I should have mentioned before, Generally I always look at the github/gitignore repo |
apparently github also ate the second half of my reply, due to mail but it also will put the Cargo.lock in or not based on if you pass --bin or not. I would rather submit a PR to the gitignore project to fix it to be more like ours, personally. @alexcrichton what do you think? |
Yeah I agree with @steveklabnik that these entries are at least not necessary:
(as they're all in the As for So I guess, yes, I agree that we should probably send a PR to gitignore to remove the build artifacts, but otherwise seems like a good gitignore to me! |
Closing as we probably don't need to make changes locally for now, but thanks for the report! |
running
cargo new hello_world --bin --vcs git
generates a
.gitignore
file withcan we use something like https://github.com/github/gitignore/blob/master/Rust.gitignore ?
am using "cargo 0.9.0 (8fc3fd8 2016-02-29)" on OSX
The text was updated successfully, but these errors were encountered: