git-prune

Git Prune Local Branches

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "git-prune" with this command: npx skills add codyswanngt/lisa/codyswanngt-lisa-git-prune

Git Prune Local Branches

Remove local branches whose upstream tracking branches have been deleted on remote.

Workflow

Fetch and prune remote-tracking references

!git fetch --prune

Find and delete stale local branches

!git branch -vv | grep ': gone]' | awk '{print $1}'

Apply these requirements

  • Preview: Show which branches will be deleted before deleting

  • Safe Delete: Use -d (safe delete) which refuses to delete unmerged branches

  • Report: Show summary of deleted branches

Never

  • Force delete (-D ) without user confirmation

  • Delete the current branch

  • Delete protected branches (dev, staging, main)

Execute

Execute the workflow now.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

lisa-review-project

No summary provided by upstream source.

Repository SourceNeeds Review
General

lisa-integration-test

No summary provided by upstream source.

Repository SourceNeeds Review
General

jsdoc-best-practices

No summary provided by upstream source.

Repository SourceNeeds Review