Cleanup Copy
Safely removes a forked project copy and cleans up any remaining git references.
What it does
- Validates the copy exists
- Warns if changes haven't been merged back (no
merge/<feature-name>branch found) - Warns if there are uncommitted changes in the copy
- Removes any leftover temporary remote in the original project
- Deletes the copy directory
- Lists remaining copies (if any)
Usage
/cleanup-copy <feature-name>
How to execute
This must be run from the ORIGINAL project directory (not the copy).
bash .claude/skills/cleanup-copy/scripts/cleanup-copy.sh "<feature-name>"
Important
- Always run
/merge-backBEFORE/cleanup-copyto avoid losing work - The script warns about unmerged changes but proceeds with deletion
- If you need to keep the copy, simply don't run this command
- Shows remaining copies after cleanup so you know what's still active