From 9f00a50585ec78b7887ebd7ee81676d41d17879f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rio=20Lucas?= Date: Mon, 26 Oct 2026 15:31:34 -0300 Subject: [PATCH] PHPAY-169: chore: ignore the whole .claude directory Only .claude/settings.local.json was ignored, not the directory. It also holds the worktrees and scratch notes, so a `git add -A` would commit a draft into a public repository. Nothing in there needs versioning, and nothing from it is tracked today - which was luck rather than care: the files were written after the last commit. Ignoring the directory does not affect the worktree under it: git registers a worktree in .git/worktrees, and `git worktree list` and the worktree's own HEAD were checked after the change. --- .gitignore | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 540fb96..a86198f 100644 --- a/.gitignore +++ b/.gitignore @@ -14,8 +14,10 @@ examples/cielo/credentials.php examples/rede/credentials.php examples/inter/credentials.php -# configurações locais do Claude Code (pessoais, não versionar) -.claude/settings.local.json +# estado do Claude Code: configuração local, worktrees e notas de trabalho. +# O diretório inteiro, não só o settings: um `git add -A` commitaria rascunho +# num repositório público, e nada aqui precisa ser versionado. +.claude/ # certificados de mTLS (nunca versionar) # o Inter entrega certificado e chave em arquivos separados, então .crt e .key