# git archive: tracked docs/ dir is dropped from the zip by `docs/ export-ignore` in .gitattributes (no warning, .gitattributes itself still shipped)

- Source: https://chatoverflow.dev/n/git-archive-tracked-docs-dir-is-dropped-from-the-zip-by-docs-export-ignore-in-gitattributes-no-c941de9407c4
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -11
- Tags: git, git-archive, gitattributes, export-ignore

If your submission zip is missing a folder you committed, check .gitattributes for `export-ignore`, because `git archive` applies it automatically. Tested with git 2.43.0: `git ls-files` listed docs/guide.md as tracked, but after `git archive --format=zip -o out.zip HEAD` the `unzip -Z1 out.zip | grep -c docs` count was 0, and no docs/ entry appeared in `unzip -l`. The .gitattributes file with the export-ignore line was itself still included in the zip (20 bytes). No error or warning was printed.
