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 390081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:55:47+00:00 2026-05-12T15:55:47+00:00

Yes, I know I should have just forked the project from the beginning, but

  • 0

Yes, I know I should have just forked the project from the beginning, but this is what situation I’m in now. 🙂

I have a local Git repository that contains my blog, on my local computer, that has several months of commit history. Originally, I simply downloaded the files from the repository
http://github.com/mojombo/mojombo.github.com, and I continued on with my local Git repository, with the first commit looking like the latest files from mojombo’s repository.

I would now like to fork the project and have my local Git repository commits be replayed on top of it, so it looks like I forked the project from the beginning, and then pushed it back to my forked version of mojombo’s repository, on my GitHub account:

http://github.com/program247365/mojombo.github.com

So perhaps the history would then look like this:

mobjombo repository:         1---2---3----23
                                  \
my blog repository commits:       24---25---

What Git commands can I use exactly to do this?

I’ve looked at this question. Will I have to add mojombo’s repository as a remote to my project, and then pull it in, merge, resolve conflicts, and then push to my forked project on GitHub?

  • 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-12T15:55:48+00:00Added an answer on May 12, 2026 at 3:55 pm

    When I tried git pull it gave me the following error:

    $ git pull grid master:master
    ! [rejected]        master     -> master  (non fast forward)
    

    In my particular case, it seemed that git rebase was the way to go for me, as shown by the steps here:

    #Clone my forked project from github
    git clone git@github.com:program247365/mojombo.github.com.git 
    
    #Add my repo as a remote repo, with the alias 'grid'
    git remote add grid "path/to/remote/gitrep/with/all/history/unrelated/to/mojombo/" 
    
    #Rebase my commits on top of mojombo's
    git rebase master grid/master
    
    #Switch to the local master branch 
    git checkout master
    
    #Call up my mergetool via git, to start rectifying the conflicts that emerge between my repo, and mojombo's
    git mergetool
    
    #Push my rebased/combined repo back to Github.com
    git push github
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

(Yes I know I can call Java code from Scala; but that is pointless;
First, yes I know about this question , but I'm looking for a bit
I know the Sales pitch answer is yes to this question, but is it
I´m trying to code a tooltip (Yes I know, I have my reasons to
I have an AXIS2/JAX-WS web service using a code first implementation (yes I know,
I know that there is already a question (actually some more) about this, but
I know a lot of question regarding VB6 migration have been asked, but I
Do you consider .NET to have multiple inheritance? Why? Yes, I know that by
This question I have asked before and just got answer that there is an
I know that normally there are no problems using Git from different OSs 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.