Skip to content

PHPAY-169: ignorar o .claude/ inteiro - #170

Merged
mariolucasdev merged 1 commit into
developfrom
chore/phpay-169
Oct 26, 2026
Merged

mariolucasdev merged 1 commit into
developfrom
chore/phpay-169

Conversation

@mariolucasdev

Copy link
Copy Markdown
Collaborator

Closes #169.

O .gitignore ignorava .claude/settings.local.json, mas não o diretório — que carrega também o worktrees/ e notas de trabalho. Um git add -A commitaria rascunho num repositório público.

Nada de .claude está versionado hoje, conferi no log. Mas foi sorte: os arquivos foram escritos depois do último commit, e eu usei git add -A várias vezes.

O worktree não quebra. O git registra worktree em .git/worktrees, não pelo diretório de checkout. Conferi depois da mudança: git worktree list lista os dois e o HEAD do worktree segue em claude/sharp-williams-7f30b3.

Gate: lint, 770 testes, PHPStan nível 9, 113 links, matriz conferida.

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.
@mariolucasdev
mariolucasdev merged commit 48c5526 into develop Oct 26, 2026
8 checks passed
@mariolucasdev
mariolucasdev deleted the chore/phpay-169 branch October 26, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ignorar .claude/ inteiro, não só o settings.local.json

1 participant