Loading...
Loading...
Safely clean merged and stale git branches with explicit confirmations.
npx skill4agent add tmeister/skills git-branch-cleanuporigin/HEADmainmastergit status --porcelaingit symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@'mainmastermainmasterdevelopstagingproductionqagit branch --merged <default-branch>git branch -r --merged <default-branch>git for-each-ref --format='%(refname:short) %(committerdate:short)' refs/headsgit branch -d <branch>-Dgit remote prune origingit push origin --delete <branch>git reflog --no-merges --since="2 weeks ago"