From: Sean Estabrooks Date: Tue, 06 May 2008 18:56:47 GMT Subject: Re: how to git-archive ignore some files? Message-ID: 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 wrote: > 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