From: Johannes Sixt <j.sixt@viscovery.net>
To: semtlenori@gmail.com
Cc: Andreas Schwab <schwab@linux-m68k.org>, git@vger.kernel.org
Subject: Re: Remove all files except a few files, using filter-branch
Date: Tue, 18 Sep 2012 17:10:15 +0200 [thread overview]
Message-ID: <50588ED7.4090501@viscovery.net> (raw)
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
next prev parent reply other threads:[~2012-09-18 15:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-16 16:28 Remove all files except a few files, using filter-branch Yi, EungJun
2012-09-16 17:06 ` Andreas Schwab
2012-09-18 15:01 ` Yi, EungJun
2012-09-18 15:10 ` Johannes Sixt [this message]
2012-09-18 15:25 ` Yi, EungJun
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=50588ED7.4090501@viscovery.net \
--to=j.sixt@viscovery.net \
--cc=git@vger.kernel.org \
--cc=schwab@linux-m68k.org \
--cc=semtlenori@gmail.com \
/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).