Skip to content

Sync fork with upstream via rebase, not merge #48935

Closed Answered by rauzerfabiano
Tony-Sol asked this question in Repositories
Discussion options

You must be logged in to vote

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:

  • Open your fork on GitHub and navigate to the "Pull requests" tab.
    
  • Click on the "New pull request" button.
    
  • On the "Comparing changes" page, set the base repository to the upstream repository that you want to sync with, and set the base branch to the branch you want to update. Set the head repository to your fork, and set the compare branch to the branch that you want to merge.
    
  • GitHub will show that there is nothing to compare, so click on the "switching the base" link.
    
  • On the "Choose a base" page, select the branch that you want to update, and th…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Tony-Sol
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Repositories The core of version-controlled code storage Question
3 participants