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% similarUnverifiedThe principle of least privilege requires checking only the scopes actually needed on a GitHub token, mounting only the directories that genuinely need organizing in File System, and requiring secondary confirmation for deletion-type tools.72% similarVerifiedGit provides three ignore files: the project-level .gitignore, the global core.excludesFile, and the local .git/info/exclude72% similarUnverifiedSparse checkout is a capability Git has offered since version 1.7 that allows developers to map only part of a repository's directories into the working tree while keeping the remaining paths in a "not checked out" state.72% 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% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/895214API
curl https://kongchang.com/api/v1/knowledge/claims/895214MCP
get_claim(id=895214)