Close Worktree

Close a git worktree session: ensure a clean tree (via finish-work if dirty), review branch-related stashes, preserve keepable untracked files onto develop, rebase the feature branch onto develop and fast-forward develop, then remove the worktree and local branch. Use when closing a worktree, landing a feature branch into develop, cleaning up after a worktree session, or finishing a parallel worktree.

fixmyberlin Updated 24 repo stars

File contents

fixmyberlin/fixmyskills commit aafaa725ed

Frequently asked questions

npx get-skill add fixmyberlin/close-worktree