What problem does it solve?
wtpr automates the full PR submission workflow on git worktrees: automatically identify the active worktree, handle uncommitted changes, rebase to the latest origin/main, force-push, and create or update a GitHub PR when users submit a PR, add commits to an existing PR, or run the wtpr command.
Core Features & Use Cases
- Automated worktree PR management: detect context, stage changes, rebase, and push with safety checks.
- PR lifecycle handling: create new PRs or attach new commits to existing ones, with clear status updates.
- Safe execution: guided conflict resolution and automatic messaging to keep PRs synchronized with origin/main.
Quick Start
Run wtpr in your git worktree to automatically manage PR creation and updates, including rebasing to origin/main and force-pushing when needed.