/wt:finish - Finish Feature and Merge
Description
Quick command to finish a feature, merge it back to the base branch, and clean up the worktree.
Usage
/wt:finish
What It Does
This slash command:
-
Activates the Git Worktree Manager skill (@git-worktree )
-
Automatically runs the *finish-feature command
-
Guides you through merging and cleanup
Workflow
The command will:
-
Verify clean state - Ensure all changes are committed
-
Ask for base branch - Which branch to merge into (e.g., main )
-
Run tests - Optional: run tests before merging
-
Checkout base branch - Switch to the target branch
-
Merge feature - Merge your feature branch
-
Push changes - Push the merged changes
-
Remove worktree - Clean up the feature worktree
-
Delete branch - Optionally delete the feature branch
Benefits
✅ Complete Workflow - Handles entire merge process ✅ Safe Merging - Verifies tests and clean state ✅ Automatic Cleanup - Removes worktree and branch ✅ Guided Process - Interactive prompts for all steps
Notes
-
Ensures all changes are committed before merging
-
Optionally runs tests before merging
-
Cleans up both worktree and branch
-
Returns you to the base branch