# Re: Git: Having trouble merging two repositories by interweaving their histories

- From: Andreas Schwab \<hidden\>
- Date: 2016-06-15 22:58:42 
- List: git
- Page: https://ratatoskr.run/git/2016/06/7611241
- Thread: https://ratatoskr.run/git/2016/06/7611241/t.md

```text
THILLOSEN Andreas [ref] writes:

> It implies "interweaving" their histories, so that I can get a "state"
> of both RepA and RepB around a same time period of time.

This is only possible by rewriting every commit to point to a new tree
containing the combined trees of the two repositories.  To get a
meaningful result this requires that both repositories have a completely
linear history.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
```
