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

  • Home
  • SEARCH
  • 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 8499571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:42:14+00:00 2026-06-11T00:42:14+00:00

I’m rather new to github social coding and are having trouble following github guidelines.

  • 0

I’m rather new to github social coding and are having trouble following github guidelines. I’ll try to describe what happened and what I’m trying to achieve – hoping that more experienced git wizards can help me figure out the arcade commands needed to get there.

  • Original project: https://github.com/phatboyg/MassTransit
  • My fork: https://github.com/davidcie/MassTransit
  • Platform: Windows, with Github for Windows + its PowerShell

What happened

  1. I forked MassTransit back in July 2012. Its master branch back then was at version v2.1.1, with last commit on Mar 29, 2012.
  2. Following github advice, I then started coding some changes on a topic branch.
  3. A few commits later, when the feature was finished, I merged my topic branch into my clone’s local master and then pushed that to github.
  4. Ever since Mar 29, 2012, MassTransit was being developed on its develop branch. All of those changes, making up v2.6.0, were merged with its master recently.

What I’d like to do

I’d like to get all changes that were merged into upstream/master. Preferrably as their respective commits, not one massive commit of hundreds of files. Because I was doing development on the former upstream/master (dated Mar 29, 2012), I guess would effectively need to "insert" some commits in between the last upstream/master change of Mar 29 and my first commit of Aug 8, and then on top of that add those that happened later. How do I do that?

(I’d also like not to destroy my commits/fork in the process 😉

What I tried

git checkout master
git remote add upstream git://github.com/phatboyg/MassTransit.git
git rebase upstream/master
git push

However, it would not let me then do git push, complaining that my local tip was 10 commits behind the origin (possibly the commits I made on my topic branch and later merged into origin/master?).

Recommendations?

It seems that I may have been bitten by recommendations. Eg. perhaps it would be better to create a separate branch, eg. local-master, and treat that as… well, my own master. Then master would be there only for keeping in touch with upstream/master, and I would occasionally rebase origin/master with upstream/master and merge with origin/local-master…

How do you guys manage your forks?

Other questions

I’ve been unable to find a way to visualize branch history, what branch was merged with another and when, etc. Github for Windows only shows a flat history for the currently selected branch (sad face here). The website does have some visualizations for the network (here is one for MassTransit), but this feels a lot less informative than say the graphs in TortoiseHg. Am I missing something obvious? Does everyone else just remember what was merged with what and when?

Edit (31st August)

I’m sharing a poor-man’s visualization to help explain what happened.

  1. I forked when C1 was latest on upstream/master.
  2. I then developed on my origin/feature-1.
  3. One the feature was complete, I merged it with my origin/master.
  4. When upstream/mega-feature was completed, it was merged with upstream/master, effectively historically copying C2 and C3 to upstream/master. (Or perhaps upstream/master was rebased with upstream/mega-feature?)
  5. I would now like to copy C2, C3 and C4 to my origin/master.
  • 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-06-11T00:42:16+00:00Added an answer on June 11, 2026 at 12:42 am

    I assume that you will be, or have, set up an origin remote to your fork, and the same again for upstream (as described).

    I would then do a fetch of the upstream so that you have all their branches held locally. You can then make the comparisons between the repos and see if there is a common commit at or near the divergence date.

    The gitk --all visualisation is useful here. Don’t forget that even if you do a rebase the old commit series is still there so you can give it a name


    [EDIT] A wordy description.

    Clearly the merge commit is ‘getting in the way’ so needs to be massaged away so that the repos can be brought in sync again.

    1. create a temp branch at your current head, so nothing gets lost.
    2. reset your master branch back to the last common commit between you and upstream.
    3. reset your feature branch to just before the merge.
    4. checkout that merge commit to get the working tree as you expect, then
    5. switch to your feature branch (without checking out anything!)
    6. commit that fixed work tree on your feature branch (i.e. no merge).

    You now have a clean line on master, a clean but old line on feature, and any post merge developments on temp. if Happy, you should be able to force push this to your origin.

    1. pull from upstream – it (i.e. master, etc.) should all fast forward.
    2. rebase those post merge developments from temp onto feature (if required).
    3. rebase feature to the last commit you know well on master (should be relatively easy).
    4. rebase feature (again) to the latest commit on master, fixing up as you go (combine with the last step if it’s easy;-).

    This should finally give you a clean line of feature development at the head of master, and suitable for pulling upstream without any conflict.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I am trying to render a haml file in a javascript response like so:
We're building an app, our first using Rails 3, and we're having to build
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this

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.