Re: is it possible filter the revision history of a single file into another repository?
- From
Sverre Rabbelier <srabbelier@gmail.com>
- Date
- Dec 18, 2008, 14:15 UTC
- Message-ID
- <bd6139dc0812180615v34d9aa7dj4b24ddf049b5615e@mail.gmail.com>
- In-Reply-To
- <8ec76080812180551p8c97a0dqa2025e67792946c7@mail.gmail.com>
On Thu, Dec 18, 2008 at 14:51, Whit Armstrong <armstrong.whit@gmail.com> wrote:
Show 7 quoted lines
> For instance, if my repository contains foo.c, and 100 other files. > > I would like to create a new and separate repository containing only > the revision history of foo.c. > > Would someone mind pointing me at some documentation for this > procedure if it exists?
I think "git filter-branch" is what you need. Have it filter out changes to files but foo.c, and then remove all empty commits.
-- Cheers, Sverre Rabbelier