Generate a bash script to manually rebase a stack.
gh-stack rebase 'STACK-ID' > rebase.sh
chmod +x rebase.sh
./rebase.shOutputs a bash script with git commands to:
- Check out each branch in order
- Rebase onto the previous branch
- Handle the stack reconstruction step-by-step
This gives you full control over the rebase process.
| Flag | Description |
|---|---|
-e, --excl |
Exclude PR by number (repeatable) |
- When
autorebasedoesn't fit your workflow - When you need to inspect/modify the rebase steps
- For debugging stack issues
- When you want to dry-run before executing
- The generated script may need manual adjustments
- Review the script before executing
- Back up your work first
- autorebase - Automatic stack rebuilding
- log - Verify stack structure