Repository navigation
What’s the recommended gh-stack workflow for contributing from a fork?
#656
Unanswered
soroshsabz
asked this question in
Q&A
Replies: 1 comment 1 reply
|
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
ITNOA
I’m contributing to a repository where I don’t have write access.
originis my fork, andupstreamis the original repository. I have two dependent changes:refactoris based onupstream/main, andfeatureis based onrefactor. Both branches live in my fork.I’d like upstream maintainers to review both changes separately before either merges, with the feature PR showing only the feature diff. After the refactor lands—even if it’s squash-merged—I want to rebase the feature onto
upstream/mainand preserve the existing PR and review discussion if possible.Can
gh-stacksupport this workflow without pushing branches to the upstream repository? If not, what’s the recommended workflow, and which steps cangh stackhandle versus plainghorgit? A concrete command sequence for this two-branch example would be helpful.All reactions