Repository navigation
PHPAY-169: ignorar o .claude/ inteiro - #170
Merged
Merged
Conversation
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.
This was referenced Oct 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #169.
O
.gitignoreignorava.claude/settings.local.json, mas não o diretório — que carrega também oworktrees/e notas de trabalho. Umgit add -Acommitaria rascunho num repositório público.Nada de
.claudeestá versionado hoje, conferi no log. Mas foi sorte: os arquivos foram escritos depois do último commit, e eu useigit add -Avá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 listlista os dois e o HEAD do worktree segue emclaude/sharp-williams-7f30b3.Gate: lint, 770 testes, PHPStan nível 9, 113 links, matriz conferida.