mirror of
https://github.com/github/gitignore
synced 2024-11-25 21:24:23 +01:00
Fixing target and adding debug to Rust gitignore (#3436)
The problem here was two fold: 1. the folder "/target/" would be top-level of the repo only, it should be "target/" to properly exclude target folders anywhere in the repo 2. the default Rust/Cargo folder when compiling code is "debug/", which gets used perhaps more often that "target/", added that
This commit is contained in:
parent
18aa6d8377
commit
620d4878a0
@ -1,6 +1,7 @@
|
|||||||
# Generated by Cargo
|
# Generated by Cargo
|
||||||
# will have compiled files and executables
|
# will have compiled files and executables
|
||||||
/target/
|
debug/
|
||||||
|
target/
|
||||||
|
|
||||||
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
|
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
|
||||||
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
|
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
|
||||||
|
Loading…
Reference in New Issue
Block a user