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

git archive ignores .gitignored files?

From
Brian Downing <bdowning@lavos.net>
Date
Jul 26, 2007, 17:32 UTC
Message-ID
<20070726173206.GR21692@lavos.net>

git archive seems to not output files marked in .gitignore. I find this behavior a little perplexing, since it does not create an archive from the working directory, and if something is committed, even if it is marked in .gitignore, it should probably wind up in the archive.

The reason I discovered this is that I'm trying to keep a debian build branch for Git, and the debain/git-daemon directory was mysteriously missing from anything generated with git archive, as "git-daemon" is in Git's /.gitignore.

Is this intended behavior?  It seems kind of a misfeature to me.

(Of course it's possible /.gitarchive should have "/git-daemon" rather than "git-daemon"; that's certainly how I will work around the issue.)

-bcd
Next: Brian Downing
Message 1 of 3 in “git archive ignores .gitignored files?”
  1. Brian DowningJul 26, 2007
  2. Brian DowningJul 26, 2007
  3. Brian DowningJul 26, 2007

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.