Skip to content

Commit ddc5d3e

Browse files
stranmaclaude
andcommitted
fix: move common git commands from ask to allow
git restore, git reset, git rm, git mv, and git worktree are routine development commands that cause unnecessary permission friction, especially when user-level defaultMode is set to plan. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 566e9cd commit ddc5d3e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.claude/settings.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
"Bash(git branch *)", "Bash(git checkout *)", "Bash(git status *)",
1212
"Bash(git diff *)", "Bash(git log *)", "Bash(git show *)",
1313
"Bash(git merge *)", "Bash(git stash *)",
14+
"Bash(git restore *)", "Bash(git reset *)", "Bash(git rm *)",
15+
"Bash(git mv *)", "Bash(git worktree *)",
1416
"Bash(git remote *)", "Bash(git submodule *)", "Bash(git tag *)",
1517
"Bash(git switch *)", "Bash(git rev-parse *)", "Bash(git cherry-pick *)",
1618
"Bash(git blame *)", "Bash(git reflog *)", "Bash(git ls-files *)",
@@ -41,8 +43,7 @@
4143
"Bash(gh workflow enable *)", "Bash(gh workflow disable *)",
4244
"Bash(gh issue create *)", "Bash(gh issue comment *)",
4345
"Bash(gh issue close *)", "Bash(gh issue edit *)",
44-
"Bash(git reset *)", "Bash(git init *)", "Bash(git clone *)",
45-
"Bash(git rm *)", "Bash(git mv *)", "Bash(git restore *)", "Bash(git worktree *)",
46+
"Bash(git init *)", "Bash(git clone *)",
4647
"Bash(uv remove *)", "Bash(uv cache *)", "Bash(uv init *)",
4748
"WebFetch"
4849
]

0 commit comments

Comments
 (0)