Cursor · tool · fg-0518
.cursorignore negation does not re-include a file inside an ignored folder
!public/assets/style.css has no effect after public/*
Verified 2026-10-15 · Confirmed by 0 builders · Trust 50/100
Cause
Excluded directories are not traversed, so a negation for a file below the excluded level is never seen. This matches how gitignore handles nested negation.
Fix
Exclude the nested folder's contents explicitly, then negate the file, and test the pattern with git check-ignore -v.
Apply
public/assets/* !public/assets/style.css
Affects: Cursor .cursorignore, as of 2026-10
Sources
Have your agent know this before it fails
claude mcp add --transport http footgun https://getfootgun.com/api/mcp