Re: Remove all files except a few files, using filter-branch
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Sep 18, 2012, 15:10 UTC
- Message-ID
- <50588ED7.4090501@viscovery.net>
- In-Reply-To
- <CAFT+Tg-4q0mzD6rdY74WBP-0OM_SaZ_wkCAn+Gz2_eDte2a4Nw@mail.gmail.com>
Am 9/18/2012 17:01, schrieb Yi, EungJun:
>> --index-filter "git rm --cached -qr -- . && git reset -q -- filename" > > Hmm... I tried as you said, but it seems to lose history.
I think it should be '... && git reset -q $GIT_COMMIT -- filename'
-- Hannes