Re: how to git-archive ignore some files?
- From
Sean Estabrooks <seanlkml@sympatico.ca>
- Date
- May 6, 2008, 18:56 UTC
- Message-ID
- <BAYC1-PASMTP023026B88005E512F95384AED60@CEZ.ICE>
- In-Reply-To
- <1210097731.5238.3.camel@omicron.ep.petrobras.com.br>
On Tue, 06 May 2008 15:15:31 -0300 Victor Bogado da Silva Lins <victor@bogado.net> wrote:
Show 7 quoted lines
> I want to use git-archive to create source packages, but my git > repository has a .gitignore that I don't want to be pushed into the > archive. So is it possible to keep the .gitignore file in the repository > and create an archive(*) without it? > > *) using git-archive, off course. >
Hi Victor,
You can do something like:
git archive HEAD | \ tar --delete .gitignore .mailmap .gitattributes | \ bzip2 -c > archive.tar.bz2
HTH, Sean