toptal / gitignore.io

Create useful .gitignore files for your project
https://www.toptal.com/developers/gitignore
MIT License
8.21k stars 623 forks source link

IntelliJ-rule "out/" cause all folders out to be excluded #630

Open DenWin opened 10 months ago

DenWin commented 10 months ago

Issue Template

Frequently Asked Questions

Q: How do I submit a new .gitignore templates?
A: Please submit all new templates to @toptal/gitignore.

Q: How do I suggest modifications to existing .gitignore templates?
A: Modifictions should come in the form of pull requests at @toptal/gitignore.

Q: Why don't Gitignore.io's templates don't look exactly like the templates on @github/gitignore?
A: Gitignore.io tried to maintain parity with @github/gitignore, but GitHub's template list doesn't include many languages, operating systems, and IDE's that developers use. Gitignore.io's template list has over 100 more templates than GitHub's.

Q: Why is my local site empty?
A: When the repository is cloned, the --recursive flag is necessary. gitignore.io uses @toptal/gitignore as its data source. If the repo isn't cloned recursively, templates will be missing.

Issue

I had the problem, that one of my folder is called "/something/something/out" and a file added here was ignored due to the intelliJ-rule:

# IntelliJ
out/

Development Environment:

Expected Behavior:

Well with

# IntelliJ
/out/

it would not have happend.

Actually most of the exclusions should be added with this leading slash!

Actual Behavior:

Reproduction Steps: