Create an application source bundle – AWS Elastic Beanstalk

$ git archive -v -o myapp.zip –format=zip HEAD. git archive only includes files that are stored in git, and excludes ignored files and git files. This helps keep your source bundle as small as possible. For more information, go to the git-archive manual page.. Zipping files in Mac OS X Finder or Windows explorer

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/applications-sourcebundle.html