Unverified60% confidenceFactExact time
If a directory is ignored by Git, Git will not recursively enter that directory to inspect the files inside; therefore, the !*/ rule is needed to preserve the directory structure in order for file-level whitelisting to take effect.
2
Sources
60%
Confidence
Long-term
Relevance
9/11/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedFiles already tracked by Git are not affected by .gitignore, because once a file enters Git's object database, .gitignore cannot intervene in its tracking status.75% similarUnverifiedThe command git check-ignore -v <file path> can precisely show which rule and which .gitignore file is causing a given file to be ignored, with output including the filename, line number, and matching pattern.73% similarUnverified项目级记忆文件会被Git追踪,本地记忆文件被Git忽略70% similarUnverifiedFor files that have already been tracked by Git, subsequently adding them to .gitignore will have no effect; the git rm --cached command must first be used to untrack them.68% similarUnverifiedGit records not complete file copies but differences between files (diffs).68% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/895214API
curl https://kongchang.com/api/v1/knowledge/claims/895214MCP
get_claim(id=895214)