If your project is using git for source control, this method gives the most control over creating a distributable zip package.

Create a new file in your repo called .gitattributes . Add any other files or folders to this file that you don't want to export into your package. And then commit the file to source control:

echo "/tmp export-ignore .gitattributes export-ignore .gitignore export-ignore" >> .gitattributes git add .gitattributes git commit -m "Created .gitattributes"

And now export your package:

git archive --format zip --output ../example.zip master