René's URL Explorer Experiment


Title: Why does `gh stack rebase --upstack` include the current branch? · Issue #160 · github/gh-stack · GitHub

Open Graph Title: Why does `gh stack rebase --upstack` include the current branch? · Issue #160 · github/gh-stack

X Title: Why does `gh stack rebase --upstack` include the current branch? · Issue #160 · github/gh-stack

Description: Say I have the following stack main <- branch1 <- branch2 <- branch3 I'm on branch1, and just addressed some reviewer feedback by adding a few extra commits. Now I need to do the following: rebase branch2 on branch1 rebase branch3 on bra...

Open Graph Description: Say I have the following stack main <- branch1 <- branch2 <- branch3 I'm on branch1, and just addressed some reviewer feedback by adding a few extra commits. Now I need to do the following: rebase ...

X Description: Say I have the following stack main <- branch1 <- branch2 <- branch3 I'm on branch1, and just addressed some reviewer feedback by adding a few extra commits. Now I need to do the follo...

Opengraph URL: https://github.com/github/gh-stack/issues/160

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Why does `gh stack rebase --upstack` include the current branch?","articleBody":"Say I have the following stack\n\n```\nmain \u003c- branch1 \u003c- branch2 \u003c- branch3\n```\n\nI'm _on_ `branch1`, and just addressed some reviewer feedback by adding a few extra commits. Now I need to do the following:\n\n- rebase `branch2` on `branch1`\n- rebase `branch3` on `branch2`\n\nI do _not_ want to rebase `branch1` on `main` right now.\n\nMy instinct is to call `gh stack rebase --upstack` while on `branch1`, where I just addressed the feedback and added commits. I was expecting that to do what I outlined above and not change `branch1` in any way.\n\nSurprisingly (to me), it did this:\n- rebase `branch1` on `main`\n- rebase `branch2` on `branch1`\n- rebase `branch3` on `branch2`\n\nCan I ask about why `--upstack` includes a rebase of the current branch on the branch under it? That actually feels a bit \"down stack\"-ish to me.\n\nIt feels like this exact workflow is going to be pretty common for me, and the current workaround is for me to `gh stack switch` up to `branch2` and _then_ run `gh rebase --upstack`, but that feels pretty unnatural to me!","author":{"url":"https://github.com/DavisVaughan","@type":"Person","name":"DavisVaughan"},"datePublished":"2026-07-02T14:17:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/160/gh-stack/issues/160"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d031e9d0-879f-3793-3268-686ed54af5d4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB9B6:2CD0FB:508BBAF:71AC63A:6A502404
html-safe-nonce108c528526538dc283ed2053bcb43898b1c0808cd173644ed7316372a9d73285
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUI2OjJDRDBGQjo1MDhCQkFGOjcxQUM2M0E6NkE1MDI0MDQiLCJ2aXNpdG9yX2lkIjoiODE1MzA0NDczODI4MTQwMDM2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac350ba48f3d8814ea0d79eace977f92c6883010a6077be9bf9df8231c9b6ed33e
hovercard-subject-tagissue:4795280359
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/gh-stack/160/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6a4c1eb93fdfbc0a2d1dc61c3d4663b7e0fe33ebeb624221b4ce6ab9eda248e8/github/gh-stack/issues/160
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6a4c1eb93fdfbc0a2d1dc61c3d4663b7e0fe33ebeb624221b4ce6ab9eda248e8/github/gh-stack/issues/160
og:image:altSay I have the following stack main <- branch1 <- branch2 <- branch3 I'm on branch1, and just addressed some reviewer feedback by adding a few extra commits. Now I need to do the following: rebase ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDavisVaughan
hostnamegithub.com
expected-hostnamegithub.com
Nonea08040246389072795e3b4e7b33c6d9a0c564eee02e829a809326d67c418b069
turbo-cache-controlno-preview
go-importgithub.com/github/gh-stack git https://github.com/github/gh-stack.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id1151630728
octolytics-dimension-repository_nwogithub/gh-stack
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1151630728
octolytics-dimension-repository_network_root_nwogithub/gh-stack
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
released1b91b18e7330fc458dfd824c61eaed7daa830d6
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/gh-stack/issues/160#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgh-stack%2Fissues%2F160
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgh-stack%2Fissues%2F160
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=github%2Fgh-stack
Reloadhttps://github.com/github/gh-stack/issues/160
Reloadhttps://github.com/github/gh-stack/issues/160
Reloadhttps://github.com/github/gh-stack/issues/160
Please reload this pagehttps://github.com/github/gh-stack/issues/160
github https://github.com/github
gh-stackhttps://github.com/github/gh-stack
Notifications https://github.com/login?return_to=%2Fgithub%2Fgh-stack
Fork 18 https://github.com/login?return_to=%2Fgithub%2Fgh-stack
Star 511 https://github.com/login?return_to=%2Fgithub%2Fgh-stack
Code https://github.com/github/gh-stack
Issues 25 https://github.com/github/gh-stack/issues
Pull requests 5 https://github.com/github/gh-stack/pulls
Discussions https://github.com/github/gh-stack/discussions
Actions https://github.com/github/gh-stack/actions
Projects https://github.com/github/gh-stack/projects
Models https://github.com/github/gh-stack/models
Security and quality 0 https://github.com/github/gh-stack/security
Insights https://github.com/github/gh-stack/pulse
Code https://github.com/github/gh-stack
Issues https://github.com/github/gh-stack/issues
Pull requests https://github.com/github/gh-stack/pulls
Discussions https://github.com/github/gh-stack/discussions
Actions https://github.com/github/gh-stack/actions
Projects https://github.com/github/gh-stack/projects
Models https://github.com/github/gh-stack/models
Security and quality https://github.com/github/gh-stack/security
Insights https://github.com/github/gh-stack/pulse
Why does gh stack rebase --upstack include the current branch?https://github.com/github/gh-stack/issues/160#top
https://github.com/DavisVaughan
DavisVaughanhttps://github.com/DavisVaughan
on Jul 2, 2026https://github.com/github/gh-stack/issues/160#issue-4795280359
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.