git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Sixt <j.sixt@viscovery.net>
To: Jamil Djadala <djadala@datamax.bg>
Cc: git@vger.kernel.org
Subject: Re: how to union 2 repos
Date: Mon, 26 May 2008 13:10:42 +0200	[thread overview]
Message-ID: <483A9AB2.706@viscovery.net> (raw)
In-Reply-To: <1211796504.20622.26.camel@bee.datamax.bg>

Jamil Djadala schrieb:
> i have 2 repos with history, assuming initial commit in both repos are
> same:
> 
> 1:
> a-b-c-d-e-f
> 2:
> a-B-C-D-E-F
> 
> 
> i want repository with this history:
> 
> a-b-c-d-e-f
>  \B-C-D-E-F

$ git fetch ../other master:otherMaster
$ echo $B $a > .git/info/grafts
$ git filter-branch -- --all

The man page of git-filter-branch mentions the grafts trick.

-- Hannes

      reply	other threads:[~2008-05-26 11:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-26 10:08 how to union 2 repos Jamil Djadala
2008-05-26 11:10 ` Johannes Sixt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=483A9AB2.706@viscovery.net \
    --to=j.sixt@viscovery.net \
    --cc=djadala@datamax.bg \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).