How to rebase one Git repository onto another one?

Posted by kroimon on Stack Overflow See other posts from Stack Overflow or by kroimon
Published on 2010-03-11T19:47:01Z Indexed on 2010/03/11 19:49 UTC
Read the original article Hit count: 232

Filed under:
|
|
|
|

Hi there!

I had one Git repository (A) which contains the development of a project until a certain point. Then I lost the USB stick this repo A was on. Luckily I had a backup of the latest commit, so I could create a new repository (B) later where I imported the latest project's state and continue development. Now I recovered that lost USB stick, so I have two Git repositories.

I think I just have to rebase repo B onto repo A somehow, but I have no idea how to do that, maybe using fetch/pull and rebase?

Thanks in advance for your help!

© Stack Overflow or respective owner

Related posts about git

Related posts about repository