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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:14:07+00:00 2026-06-04T16:14:07+00:00

one month ago i started working on a new function on one of our

  • 0

one month ago i started working on a new function on one of our private repositories on github. I cloned the repository and branched it. I’ve been working on the branch ever since.

In the meantime the code was moved to a different repository on github. Now i need to merge what i’ve done with the new developments that have been going on in the new one.

My idea:

1 – checkout the new repository.

2 – Find the last common commit in my repository and the new one. This should be the last commit on the master branch.

3 – Create a patch between the master branch and my working branch.

4 – Apply the patch to the new repository.

Is this correct? What should be the git commands to do 3 and 4 ?

  • 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-04T16:14:08+00:00Added an answer on June 4, 2026 at 4:14 pm

    git-rebase should do what you want, i.e. replay your changes onto the new repo:

    git remote add new-repo /path/to/new-repo
    git fetch new-repo
    git checkout hacking-branch
    git rebase hacking-branch new-repo/master
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our team started using mercurial about a month ago and it was a rough
I have some code that was working one month ago... now, when I check
A month ago I started working with phonegap, html5, css3 and jQtouch. I am
I'm working on improving one popular php forum software. A month ago I've initiated
I cloned a remote git repository about a month ago. The remote repository has
all Decrease month by one in strtotime in this loop. $twitter_val7 .='{ date: new
Started to learn programming 2 months ago, in one of my little projects i
Possible Duplicate: Given a time, how can I find the time one month ago
Given a time, how can I find the time one month ago.
I started RoR development a few months ago, and being new to Mac... Time

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.