Cleans up all git branches marked as [gone] (branches that have been deleted on the remote but still exist locally), including removing associated worktrees.
## Your Task You need to execute the following bash commands to clean up stale local branches that have been deleted from the remote repository. ## Commands to Execute 1. **First, list branches to identify any with [gone] status** Execute this command: Note: Branches with a '+' prefix have associated worktrees and must have their worktrees removed before deletion. 2. **Next, identify worktrees that need to be removed for [gone] branches** Execute this command: 3. **Finally, remove worktrees and delete [gone] branches (handles both regular and worktree branches)** E...
Cleans up all git branches marked as [gone] (branches that have been deleted on the remote but still exist locally), including removing associated worktrees.
Cleans up all git branches marked as [gone] (branches that have been deleted on the remote but still exist locally), including removing associated worktrees.
Cleans up all git branches marked as [gone] (branches that have been deleted on the remote but still exist locally), including removing associated worktrees.
Cleans up all git branches marked as [gone] (branches that have been deleted on the remote but still exist locally), including removing associated worktrees.
Cleans up all git branches marked as [gone] (branches that have been deleted on the remote but still exist locally), including removing associated worktrees.