# CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS

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

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS=1

## Think of it like

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

## 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

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.

## Example code

```bash
export CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS=1
claude
```

Let your own commit skill lead.

## Why it matters

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

## Common mistake

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

## Three principles

- **Built-in git steps.** Removed.
- **Status snapshot.** Removed too.
- **Use your own.** Git skill.

## Related terms

- [Claude Code Skill](https://learn.benibix.com/term/ai/claude-code-skill)
- [System Reminder](https://learn.benibix.com/term/ai/system-reminder)
- [CLAUDE.md](https://learn.benibix.com/term/ai/claude-md)

---

Source: https://learn.benibix.com/term/ai/claude-code-disable-git-instructions-variable
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-16
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
