Skip to content

Gitignore CLAUDE.local.md - #20008

Open
erikjohnston wants to merge 2 commits into
developfrom
erikj/gitignore_claude
Open

Gitignore CLAUDE.local.md#20008
erikjohnston wants to merge 2 commits into
developfrom
erikj/gitignore_claude

Conversation

@erikjohnston

Copy link
Copy Markdown
Member

This is useful while we don't have a committed CLAUDE.md file.

These are used by Claude Code to understand the project.

This is useful while we don't have a committed `CLAUDE.md` file.

These are used by Claude Code to understand the project.
@erikjohnston erikjohnston changed the title Gitignore CLAUDE.local.md Gitignore CLAUDE.local.md Jul 27, 2026
@erikjohnston
erikjohnston marked this pull request as ready for review July 27, 2026 14:50
@erikjohnston
erikjohnston requested a review from a team as a code owner July 27, 2026 14:50
@reivilibre

Copy link
Copy Markdown
Contributor

Maybe preferable to rely on user-level gitignores? Other people will have other tools they use and it doesn't seem particularly needed to put everyone's tools into the project gitignores:
https://stackoverflow.com/questions/5724455/can-i-make-a-user-specific-gitignore-file

Comment thread .gitignore
Comment on lines +85 to +86
# Don't include local CLAUDE config
/CLAUDE.local.md

@MadLittleMods MadLittleMods Jul 27, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The answer is sure, we can add it. We are not strict about keeping our .gitignore clean (free of platform/vendor specific things). Element is mostly using Claude right now.

For reference, this can can be made project specific local ignore by adding it to .git/info/exclude

Or apply to all of your projects, if you add it to ~/.config/git/ignore


Also as another tip, if you see an ignored file, you can also check why it's ignored via git check-ignore --verbose CLAUDE.local.md

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.

3 participants