Title: `gh stack rebase -i` - allow interactive rebasing · Issue #151 · github/gh-stack · GitHub
Open Graph Title: `gh stack rebase -i` - allow interactive rebasing · Issue #151 · github/gh-stack
X Title: `gh stack rebase -i` - allow interactive rebasing · Issue #151 · github/gh-stack
Description: Support -i for rebasing stacks. I ❤️ rebasing, and doing no-edit amends. When I do that in a branch low in the stack, the higher layers end up with "duplicate-ish" commits that conflict. The solution during a normal rebase is to drop tha...
Open Graph Description: Support -i for rebasing stacks. I ❤️ rebasing, and doing no-edit amends. When I do that in a branch low in the stack, the higher layers end up with "duplicate-ish" commits that conflict. The soluti...
X Description: Support -i for rebasing stacks. I ❤️ rebasing, and doing no-edit amends. When I do that in a branch low in the stack, the higher layers end up with "duplicate-ish" commits that conflict. ...
Opengraph URL: https://github.com/github/gh-stack/issues/151
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`gh stack rebase -i` - allow interactive rebasing","articleBody":"Support `-i` for rebasing stacks. \n\nI ❤️ rebasing, and doing no-edit amends. When I do that in a branch low in the stack, the higher layers end up with \"duplicate-ish\" commits that conflict. The solution during a normal rebase is to drop that new duplicate. Here's an example\n\n### Initial State\n\nbranch-a\n`main -\u003e commitA (111aaa)`\n\nbranch-b\n`main -\u003e commitA (111aaa) -\u003e commitB (222bbb)`\n\n### Change in `branch-a` and `git commit --amend`'d\n\nif I go to `branch-a` and make a change using `git commit --amend` I'll end up with this:\n\nbranch-a\n`main -\u003e commitA (112aaa)`\n\nbranch-b\n`main -\u003e commitA (111aaa) -\u003e commitB (222bbb)`\n\n### Finally, rebasing `branch-b`\n\nThen when `branch-b` gets rebased, it looks like this:\n\n`main -\u003e commitA (112aaa) -\u003e commitA (111aaa) -\u003e commitB (222bbb)`\n\nAgain, the solution is simply to `drop` `commitA (111aaa)`, as that's the old one. \n\nBut I can't do that with `gh stack rebase`. ","author":{"url":"https://github.com/wmcnamee-coreweave","@type":"Person","name":"wmcnamee-coreweave"},"datePublished":"2026-06-28T05:00:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/151/gh-stack/issues/151"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d9c23d18-a2ee-f4b8-0560-c3c636704cf8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F70:1EEE:2752F9C:38802A7:6A4FE107 |
| html-safe-nonce | 91da3967b19caecfbaa5189b092d2d4a951f3636a6263f1fbfa4f22a25944633 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjcwOjFFRUU6Mjc1MkY5QzozODgwMkE3OjZBNEZFMTA3IiwidmlzaXRvcl9pZCI6IjQxNDY0ODA2MjMyNzQ0MTg0NDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 166b1faea381250901462405e8b04bd996bf24e49318ed70e3ef0e55b39be5a7 |
| hovercard-subject-tag | issue:4761151807 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/gh-stack/151/issue_layout |
| twitter:image | https://opengraph.githubassets.com/551a6681b34f7d36d3061ea50631fc4e0577f238988efb0ea9b1e2caea5cb283/github/gh-stack/issues/151 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/551a6681b34f7d36d3061ea50631fc4e0577f238988efb0ea9b1e2caea5cb283/github/gh-stack/issues/151 |
| og:image:alt | Support -i for rebasing stacks. I ❤️ rebasing, and doing no-edit amends. When I do that in a branch low in the stack, the higher layers end up with "duplicate-ish" commits that conflict. The soluti... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wmcnamee-coreweave |
| hostname | github.com |
| expected-hostname | github.com |
| None | 19b98c3d9767bb8a56238a89ff8401d1cbdf3bc5c353799aacf49fe6c76b4b7c |
| turbo-cache-control | no-preview |
| go-import | github.com/github/gh-stack git https://github.com/github/gh-stack.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 1151630728 |
| octolytics-dimension-repository_nwo | github/gh-stack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1151630728 |
| octolytics-dimension-repository_network_root_nwo | github/gh-stack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 142593e66413bbae27fd485859993597d5a3b104 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width