{"version":"2.1.324","anchor":"git-trust-check-for-repositories-git-would-use-bot-protecte","canonical_anchor":"git-trust-check-for-repositories-git-would-use-bot-protecte","heading":"Git is refused in repositories Claude Code can't match to your project","tier":"soon","area":"Git Safety","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324\/e\/git-trust-check-for-repositories-git-would-use-bot-protecte","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324","markdown":"### Git is refused in repositories Claude Code can't match to your project\n\nA new check stops git when it would use a repository that isn't this project's and that you haven't trusted or added with `--add-dir`\n\n**What**\n\nClaude Code has a new check before running git. If git would use a repository that Claude Code can't match to this project or to one you trusted, the command is refused. The message tells you to trust that repository, or to name it with `--add-dir`. This check is controlled by a server-side setting.\n\n**Why**\n\nA repository's settings can tell git to run other programs. This check stops git from running programs set by a repository you have not trusted.\n\n- Area: Git Safety\n- Names: `--add-dir`\n- Tier: Nothing to try yet\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no\n- Present in the build but not switched on"}