mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-19 00:56:16 +00:00
docs(claude): force-flagged git commands require explicit approval
Extend the "destructive git actions" guideline to cover force-flags (git add -f, git push --force, git push --force-with-lease, …). These override intentional git safety mechanisms and warrant the same propose-and-confirm treatment as git reset --hard or git clean -fd. Prompted by: git add -f on a gitignored file during sec6/sec7 work. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
16c1babbc8
commit
95c228d606
@@ -182,6 +182,12 @@ unless the user has already authorised that specific action in this
|
||||
session. Prefer reversible alternatives (`git stash` over
|
||||
`git reset --hard`).
|
||||
|
||||
**Force-flags also require explicit approval.** `git add -f` (force-add
|
||||
a gitignored file), `git push --force`, `git push --force-with-lease`,
|
||||
and any other flag that overrides a git safety mechanism must be
|
||||
proposed and confirmed before running, for the same reason: they
|
||||
bypass protections that exist intentionally.
|
||||
|
||||
## What never goes into this repo
|
||||
|
||||
This repository is public. The following must never be committed:
|
||||
|
||||
Reference in New Issue
Block a user