Re: copy selected history between repostories
- From
Avery Pennarun <apenwarr@gmail.com>
- Date
- Jul 18, 2008, 17:12 UTC
- Message-ID
- <32541b130807181012o3b56c413g31667baca1732b01@mail.gmail.com>
- In-Reply-To
- <18533605.post@talk.nabble.com>
On 7/18/08, luisgutz <luis@xmos.com> wrote:
> Is there any way to import that directory into repoA with all it's history, > but NOT the history from the other commits? > Another way of putting is this: can I make git forget the history of all > other commits but those from this directory?
Try cloning the repository, then running git-filter-branch with the --subdirectory-filter option. It works quite nicely.
Have fun,
Avery