Skip to content

add .claude to gitignore#2762

Merged
ksivaman merged 1 commit intoNVIDIA:mainfrom
pstjohn:pstjohn/claude-gitignore
Mar 13, 2026
Merged

add .claude to gitignore#2762
ksivaman merged 1 commit intoNVIDIA:mainfrom
pstjohn:pstjohn/claude-gitignore

Conversation

@pstjohn
Copy link
Contributor

@pstjohn pstjohn commented Mar 13, 2026

Adds .claude/ folder to the .gitignore, claude code will dump stuff to this directory (session history, git worktrees, etc.) that we likely don't want to version-control

Signed-off-by: Peter St. John <pstjohn@nvidia.com>
@greptile-apps
Copy link
Contributor

greptile-apps bot commented Mar 13, 2026

Greptile Summary

This PR adds .claude/ to the repository's .gitignore, preventing Claude Code's generated artifacts (session history, git worktrees, etc.) from being accidentally committed.

  • The single-line addition follows the existing .gitignore style and is correctly formatted.
  • No code logic, tests, or other files are affected.
  • No issues were found during review.

Confidence Score: 5/5

  • This PR is safe to merge; it is a minimal, risk-free .gitignore update.
  • The change is a single-line addition to .gitignore with no impact on source code, tests, or build configuration. The pattern is correctly formatted and consistent with the file's existing style.
  • No files require special attention.

Important Files Changed

Filename Overview
.gitignore Adds .claude/ directory to .gitignore to prevent Claude Code session data (history, worktrees, etc.) from being tracked; correct and consistent with existing style.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[git add / git status] --> B{Is path matched\nby .gitignore?}
    B -- No --> C[File tracked by git]
    B -- Yes --> D[File ignored by git]
    D --> E[.claude/ session history]
    D --> F[.claude/ worktrees]
    D --> G[.claude/ other Claude Code artifacts]
    C --> H[Committed to repository]
Loading

Last reviewed commit: 37b83ac

@ksivaman ksivaman merged commit 306e853 into NVIDIA:main Mar 13, 2026
9 of 12 checks passed
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.

2 participants