chore(perms): unblock 'git reset --hard' (move from deny to prompt)

- Removed Bash(git reset --hard*) and Bash(git clean -fd*) from deny list.
- git reset --hard and git clean -fd are not in allow either, so Claude
  will prompt for confirmation each time (safest middle ground).
- git clean -fdx remains denied (removes ignored files = dangerous).
- Updated CLAUDE.md permission summary to reflect new model.
This commit is contained in:
gongzhiyong
2026-04-24 22:47:20 +08:00
parent 2dd513f036
commit 1277fa91d7
2 changed files with 4 additions and 3 deletions
-2
View File
@@ -321,8 +321,6 @@
"Bash(git push -f*)",
"Bash(git push origin main*)",
"Bash(git push origin master*)",
"Bash(git reset --hard*)",
"Bash(git clean -fd*)",
"Bash(git clean -fdx*)",
"Bash(git commit --amend*)",
"Bash(git filter-branch*)",