Your .gitignore is specific to elasticbeanstalk. Add in the most common python gitignores in https://github.com/github/gitignore/blob/master/Python.gitignore and remove normally gitignored files. Specifically, remove the .pyc files with git rm --cached.