git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* releasing your work
@ 2009-04-16  4:53 Lucas Sandery
  2009-04-16  6:46 ` Lars Noschinski
  0 siblings, 1 reply; 3+ messages in thread
From: Lucas Sandery @ 2009-04-16  4:53 UTC (permalink / raw)
  To: git

Hoping someone can help,

I have a repository for a web application. It has lots of testing files 
and also others from caching and dynamic content generation (they are 
gitignored).

How do I make a "release" a copy (not a clone) of the repository that 
contains only tracked files without .gitignore files? I am using git 
archive but the resulting zip file still contains .gitignore files.

Cheers,
Lucas.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: releasing your work
  2009-04-16  4:53 releasing your work Lucas Sandery
@ 2009-04-16  6:46 ` Lars Noschinski
  2009-04-16  7:40   ` Lucas Sandery
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Noschinski @ 2009-04-16  6:46 UTC (permalink / raw)
  To: Lucas Sandery; +Cc: git

* Lucas Sandery <lucas@wallcann.com> [09-04-16 06:53]:
> How do I make a "release" a copy (not a clone) of the repository that contains 
> only tracked files without .gitignore files? I am using git archive but the 
> resulting zip file still contains .gitignore files.

Have a look at the git-archive man page. You can exclude such files by
adding the export-ignore attribute to gitattributes.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: releasing your work
  2009-04-16  6:46 ` Lars Noschinski
@ 2009-04-16  7:40   ` Lucas Sandery
  0 siblings, 0 replies; 3+ messages in thread
From: Lucas Sandery @ 2009-04-16  7:40 UTC (permalink / raw)
  To: git


Lars Noschinski wrote:
> * Lucas Sandery [09-04-16 06:53]:
>   
>> How do I make a "release" a copy (not a clone) of the repository that contains 
>> only tracked files without .gitignore files? I am using git archive but the 
>> resulting zip file still contains .gitignore files.
>>     
> Have a look at the git-archive man page. You can exclude such files by
> adding the export-ignore attribute to gitattributes.
>   
Thanks Lars,

For anyone else out there with the same problem...

I made a .gitattributes file and it contains only 2 lines:
.gitignore export-ignore
.gitattributes export-ignore

I make my release with:
git archive --format=zip -9 master > ../release.zip
(after right-clicking on my repos root folder and selecting "git bash", 
i'm on a windoze machine at work)
the "../" puts the archive next to the repository folder not in it
e.g. for
c:\path\to\repos\
i get
c:\path\to\release.zip

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-04-16  7:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-16  4:53 releasing your work Lucas Sandery
2009-04-16  6:46 ` Lars Noschinski
2009-04-16  7:40   ` Lucas Sandery

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).