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
UnverifiedThe 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% similarUnverifiedGit provides three ignore files: the project-level .gitignore, the global core.excludesFile, and the local .git/info/exclude72% similarUnverifiedRead-only Git commands refer to commands that only query repository status without making any modifications to code or history, such as git status and git log.71% similarUnverifiedWhen the path pointed to by core.hooksPath exists but the executable file is missing or lacks execute permission, Git treats it as having no hooks and silently continues the commit.71% similarUnverifiedA configured hook path only says where Git will look, not whether there is an executable file there.70% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/895214API
curl https://kongchang.com/api/v1/knowledge/claims/895214MCP
get_claim(id=895214)