
What happened
An example AI report said app.env, build/, and debug.log were excluded. Running git ls-files and git check-ignore -v showed app.env is still tracked, build/out.txt is excluded by line 2 of .gitignore, and debug.log is neither tracked nor ignored.
Why it matters
A line in .gitignore does not remove a file that Git already tracks, so 'excluded' claims can be wrong for files added before the rule, and check-ignore prints nothing for ignored-free or tracked files.
Summaries like this, every morning.
A walkthrough rather than a product announcement, its central point is that two separate Git facts decide whether a file is 'excluded': whether Git tracks it, and whether a .gitignore rule matches it. In the test repository, app.env was committed before *.env was added, so git ls-files still listed it. Only git check-ignore -v --no-index, which ignores tracking status, revealed that line 1 (*.env) was the rule that would apply if the file were untracked.
For debug.log the situation was different again: no rule matched it and it was untracked, identified through the ?? marker in git status --short. That distinction matters because git add . would pick up debug.log, while build/ appeared only as !! when --ignored was added, confirming it was excluded.
The piece also flags a cleanup step and its limit. Running git rm --cached app.env removed it from git ls-files and made the *.env rule effective, but the file's content remained readable via git show HEAD:app.env, so history is a separate decision. It closes by noting Git output can vary by version and configuration, and that the suggested prompt for having an AI run these checks was not tested.
Pick your industry and the AI tools you use, and get news related to your work every day.
Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →
Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.
Databricks MLflow is now a supported destination for native OpenTelemetry export from the Claude Platform, cov…

A Zenn guide comparing OpenAI, Anthropic and Gemini tool-calling APIs found the same name-description-schema c…

A Python watchdog checks Claude Code's session log every minute, spots the usage-limit error, waits out the re…

An engineer fed error codes, logs and command output to Claude, which narrowed causes, wrote verification comm…

depgraph targets eight rules including unused-export, duplicate-code, import-cycle and god-package across Go…

After connecting GitHub, the Claude mobile app shows a permanent "コード" menu, and the author used it to rewrite…
