Skip to content

Worktree Cleaner v1.0.1

Latest

Choose a tag to compare

@isdou isdou released this 25 Nov 12:24

移除工作树时,可选清理远端分支

Mac 应用和 Antigravity 插件现在都可以在移除工作树时,勾选删除它在 origin 上的分支。删除本地分支和删除远端分支可以分别选择,两项默认关闭。

  • 单项和批量确认窗口都会显示具体的远端分支名,包括和本地分支不同名的情况。
  • 如果有人在扫描后推送了新提交,或服务器拒绝删除,工具会保留本地工作树。如果远端分支已经随 PR 合并被删除,本地清理可以继续。
  • 工具会跳过远端默认分支和 main、production 等保留名称。Mac 废纸篓只能还原本地文件夹,无法撤销远端分支删除。

Optional origin branch cleanup

When removing one or more worktrees in the Mac app or Antigravity plugin, you can also delete the corresponding branches on origin. The confirmation shows the remote branch names. Local and remote branch deletion are independent and off by default.

If a remote branch receives a new commit or the server rejects the deletion, the local worktree stays in place. If the branch was already removed after a PR merge, local cleanup can proceed.

下载 · Downloads

The DMG and ZIP contain the same Developer ID–signed, Apple-notarized universal app for Apple silicon and Intel Macs running macOS 14 or later. The DMG includes an Applications shortcut for drag-and-drop installation.

File SHA-256
WorktreeCleaner.dmg e4e80b32ce5ef9566a17afdbe3d7f6ac85d46a8f9593d03662adcfe733ebda3e
WorktreeCleaner-macOS.zip 193b7082d562217612f0a5c77df13f819523159f4e74b97722afb0002bcf66f6