claude-code - 💡(How to fix) Fix [Bug] Model refuses to execute git add command despite enabled tool permissions

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Error: Permission to use Bash with command git add

Code Example

[]
RAW_BUFFERClick to expand / collapse

Bug Description The model refuses to use certain Git commands while there are no restrictions on use or constraint in the model settings. Here the git add command. Here, the model used to use a user's commit skills to track a specific workflow to add in-stage files according to the theme. And recently, this authorization no longer works.

Temporary solution, the user is required to add files in general with the git add command. or by lot manually, And then the model can take care of the rest.

Error: Permission to use Bash with command git add

settings.json of user :

{ "env": { "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1" }, "permissions": { "deny": [ "Read(/.env)", "Read(/.env.)", "Edit(/.env)", "Edit(/.env.)", "Write(/.env)", "Write(/.env.)", "MultiEdit(/.env)", "MultiEdit(/.env.)", "NotebookEdit(/.env)", "NotebookEdit(/.env.)", "Grep(/.env)", "Grep(/.env.)", "Glob(/.env)", "Glob(/.env.)", "Bash(.env*)", "Bash(/.env)" ] } }

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.1.162
  • Feedback ID: 7457373e-bfe6-4ac1-96f2-d4299f82cc46

Errors

[]

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING