git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: releasing your work

From
LSLucas Sandery <lucas@wallcann.com>
Date
Apr 16, 2009, 07:40 UTC
Message-ID
<49E6E0F8.4050506@wallcann.com>
In-Reply-To
<20090416064602.GA3668@lars.home.noschinski.de>
Lars Noschinski wrote:
Show 9 quoted lines
> * 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

Previous: Lars Noschinski
Message 3 of 3 in “releasing your work”
  1. Lucas SanderyApr 16, 2009
  2. Lars NoschinskiApr 16, 2009
  3. Lucas SanderyApr 16, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.