Skip to content
BENIBIX Learn

CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS

AI⌨️ Claude CodeConfiguration

Also known as CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS=1

Set to 1, it drops the built-in git steps from the chat.

Think of it like

It is like you take the house rules off the fridge. Then yours are the only ones.

Example

Emma's team has a skill for commit messages in their own format. The built-in steps kept pulling the other way. She sets this, and only her skill guides commits.

Why it matters

Two sets of git steps can clash. Removing one makes the result steady.

Definition

CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS set to 1 removes Claude Code's own steps for commits and pull requests. It also drops the git status from the start of the chat. Use it when your own git skill should be the only guide. It wins over the matching setting.

Example code

bash
export CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS=1
claude
Let your own commit skill lead.

Common mistake

Setting it with no skill of your own. Claude then has no git guide at all.

Key takeaways

  1. 1
    Built-in git steps. Removed.
  2. 2
    Status snapshot. Removed too.
  3. 3
    Use your own. Git skill.