Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3755142
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T09:39:10+00:00 2026-05-19T09:39:10+00:00

The related questions that SO offer me only answer simple cases that can be

  • 0

The related questions that SO offer me only answer simple cases that can be solved with a pull – however, that doesn’t work well, as you’ll see below.

There’s a repository I’ve forked, with just a master branch, and I’ve forked it, and I’ve worked in both my master, and a new branch of my own, rw-style. The owner of the forked repository’s committed some of my changes but not others; the black dots on the top right below represent commits from both my master and rw-style branches.

alt text

I’m aware using the fork queue is not a good idea, so I’m staying away from it. Using git pull does work, but it creates a conflict that I would then need to resolve, and it also results in duplicate history for my master branch, and that doesn’t look particularly pretty.

I don’t know any other solutions right now, so I’m currently considering just creating a patch from two commits that I haven’t yet pushed, deleting my fork, creating it again from the original, and then applying my patches on top of it.

Is that the only solution?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T09:39:11+00:00Added an answer on May 19, 2026 at 9:39 am

    You can rebase your fork on to master, via:

    git rebase origin/master
    

    (while in the fork branch). Alternatively you could also reset –hard your fork branch to your master branch, then cherry-pick every commit from your fork branch back in (but the rebase will be wayyy less work unless you’re only forked by a few commits).

    Once you’ve done that, you should be able to just merge your forked branch on to the master branch, as a fast-forward merge (no merge commits or anything). However, doing either of the above will mess up all of your hashes in your fork branch, so don’t do this unless you’re sure nothing else is referencing the fork branch.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 3 related questions that can all be answered together: 1. How can
I've just read some related questions that came up when I typed the subject,
I often see people asking XML/XSLT related questions here that root in the inability
I've read the related questions but I cannot find one that suits my problem(or
I know that there are many Delphi database related questions available, but I'm considering
Questions (3 of them that are related) are bolded below. I'm trying to create
(honestly I searched and read all the 'related questions' that seemed relevant - i
I guess this is sort of two questions that are tied together. Related questions
I have tried solving this problem by posting other related questions here that focused
there are many related questions/answers about that in SO. I took a look to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.