gh-stack
gh-stack copied to clipboard
[bug] local branch not deleted on restack
When a down PR has been merged, the local branch is not deleted during sync when restacking:
(skipped but the local branch still exist)
This is intentional. We always want explicit user consent when deleting anything, just in case someone did want to keep a branch for some other reason.
Perhaps auto-deleting merged branches can be enabled by passing in a --prune flag to the relevant commands (sync and rebase)?
Completed in https://github.com/github/gh-stack/pull/94
You can now use gh stack sync --prune to delete merged branches.