Users Pricing

forum

Home Forums Does Claude Code respect .gitignore when searching a repository? – MindStick

Does Claude Code respect .gitignore when searching a repository?

Saurabh Verma 62 26 Oct 2026

I’m using Claude Code in a repo with generated build files and folders excluded by .gitignore. When I ask it to search for a function or inspect a project, should those ignored files be out of scope automatically, or can they still show up in its results? I’d like to understand what it treats as searchable before relying on it for a large codebase.


0 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md