Skip to content

Add git -C rule to CLAUDE.md#8485

Merged
iHiD merged 1 commit into
mainfrom
claude-md-git-no-dash-c
Feb 9, 2026
Merged

Add git -C rule to CLAUDE.md#8485
iHiD merged 1 commit into
mainfrom
claude-md-git-no-dash-c

Conversation

@iHiD
Copy link
Copy Markdown
Member

@iHiD iHiD commented Feb 9, 2026

Summary

  • Adds a rule to CLAUDE.md instructing AI agents to cd to the correct directory instead of using git -C <path>, which avoids issues with worktrees and ensures hooks run in the right context.

Test plan

  • Verified the rule is clear and placed in a logical section

🤖 Generated with Claude Code

Prevents issues with worktrees and ensures hooks run in the correct context.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@iHiD iHiD merged commit 6ed2aa5 into main Feb 9, 2026
8 checks passed
@iHiD iHiD deleted the claude-md-git-no-dash-c branch February 9, 2026 14:08
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.

1 participant