Re: How to exclude some files when using git-archive?
- From
Ping Yin <pkufranky@gmail.com>
- Date
- Jan 16, 2009, 05:26 UTC
- Message-ID
- <46dff0320901152126u2bb9ff55qce9a22c69276bc6a@mail.gmail.com>
- In-Reply-To
- <7v4p00otpb.fsf@gitster.siamese.dyndns.org>
On Fri, Jan 16, 2009 at 10:44 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 9 quoted lines
> Ping Yin <pkufranky@gmail.com> writes: > >> I want to exclude .gitignore from the archive, but hasn't find a easy way >> >> Ping Yin > > "man gitattributes", then look for export-ignore? > >
Thanks. That's exactly what i want.
One question: It seems the .gitattributes doesn't take effect when using following command
GIT_DIR=A/.git git archive HEAD > A.tar
where the files with attribute export-ignore are still exported.
Instead, i have to run
cd A && git archive HEAD > A.tar
Ping Yin