Sync fork with upstream via rebase, not merge #48935
-
Select Topic AreaQuestion BodyIs there a way to sync my fork with upstream from UI via rebase, but not a merge? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Yes, there is a way to sync your fork with upstream via rebase, but not a merge, using the GitHub UI. Here's how you can do it:
GitHub will now rebase your changes on top of the upstream changes and merge them into the base branch. This will result in a linear history, without an additional merge commit. |
Beta Was this translation helpful? Give feedback.
-
There's no "Merge" button, nor the "Edit" button next to it, on that page... There's only the "Create pull request" button under the input box for the PR detailed description. The button has a down arrow allowing to select "Create pull request" (checked by default) or "Create draft pull request". Looks like there's a step (or two) missing in the above details... |
Beta Was this translation helpful? Give feedback.
Yes, there is a way to sync your fork with upstream via rebase, but not a merge, using the GitHub UI. Here's how you can do it: