All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lucas Sandery <lucas@wallcann.com>
To: git@vger.kernel.org
Subject: Re: releasing your work
Date: Thu, 16 Apr 2009 17:10:40 +0930	[thread overview]
Message-ID: <49E6E0F8.4050506@wallcann.com> (raw)
In-Reply-To: <20090416064602.GA3668@lars.home.noschinski.de>


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

      reply	other threads:[~2009-04-16  7:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49E6E0F8.4050506@wallcann.com \
    --to=lucas@wallcann.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.