From 4dc93f40d58fb0ac46056631812261c881e9cc09 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 13 Feb 2026 17:03:39 +0100 Subject: [PATCH] docs: add git local-branch cleanup fallback --- AGENTS.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 84105aa0696..a64073877b5 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -106,6 +106,10 @@ - `sync`: if working tree is dirty, commit all changes (pick a sensible Conventional Commit message), then `git pull --rebase`; if rebase conflicts and cannot resolve, stop; otherwise `git push`. +## Git Notes + +- If `git branch -d/-D ` is policy-blocked, delete the local ref directly: `git update-ref -d refs/heads/`. + ## Security & Configuration Tips - Web provider stores creds at `~/.openclaw/credentials/`; rerun `openclaw login` if logged out.