Skip to content

Disable Claude Code from running git commit? #4

@mlevison

Description

@mlevison

Is there a way to disable Claude's ability to run git commit? In my settings.json I have:
"permissions": {
"deny": [
"Bash(git commit:*)",
"Bash(curl *)",
"Bash(wget *)",
"Bash(ssh *)",
"Bash(sudo *)"
],

If I used Claude Code without the /x commands, it obeys it's permissions. When the slash commands in this repo, Claude happily ignores the permissions.

Short of forking this repo and removing any use of git commands, is there a way to disable git usage from the commands you implemented?
(FWIW aside from this, the commnands have been very helpful in doing my hobbiest development.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions