From: "Yi, EungJun" <semtlenori@gmail.com>
To: Johannes Sixt <j.sixt@viscovery.net>
Cc: Andreas Schwab <schwab@linux-m68k.org>, git@vger.kernel.org
Subject: Re: Remove all files except a few files, using filter-branch
Date: Wed, 19 Sep 2012 00:25:23 +0900 [thread overview]
Message-ID: <CAFT+Tg_UbG8C9o2E5P1E2a9GXgLhn2fmE8sMA4un0Kai2HrOeg@mail.gmail.com> (raw)
In-Reply-To: <50588ED7.4090501@viscovery.net>
> I think it should be '... && git reset -q $GIT_COMMIT -- filename'
It works! Thanks to Hannes and Andreas!
On Wed, Sep 19, 2012 at 12:10 AM, Johannes Sixt <j.sixt@viscovery.net> wrote:
> 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
prev parent reply other threads:[~2012-09-18 15:25 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
2012-09-18 15:25 ` Yi, EungJun [this message]
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=CAFT+Tg_UbG8C9o2E5P1E2a9GXgLhn2fmE8sMA4un0Kai2HrOeg@mail.gmail.com \
--to=semtlenori@gmail.com \
--cc=git@vger.kernel.org \
--cc=j.sixt@viscovery.net \
--cc=schwab@linux-m68k.org \
/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).