What problem does it solve?
Setting up isolated development environments and following consistent git workflows in the HyperShift repository requires repetitive manual commands for worktrees, branch naming, commit formatting, and remote synchronization, which is error-prone and slow.
Core Features & Use Cases
- Worktree-Based Environments: Create parallel development environments with
git worktree add so multiple features can be developed side by side in the same repository.
- Standardized Branching and Commits: Enforces conventional branch prefixes (feat/, fix/, docs/) and commit message format with Signed-off-by trailers, validated via
make run-gitlint.
- Remote Sync and Cleanup: Handles pushing to a fork remote, rebasing on upstream main with safe
--force-with-lease, and cleaning up worktrees after merge.
- Use Case: A developer starting a new AWS PrivateLink feature runs the workflow to fetch upstream main, create a worktree with a
feat/ branch, commit changes in the required format, push to their fork, and open a PR with gh.
Quick Start
Ask the assistant to create a new git worktree and feature branch from upstream main for your HyperShift change, then commit and push it to your fork.