Skip to content

Instantly share code, notes, and snippets.

@yireo
Created July 16, 2017 11:11
Show Gist options
  • Save yireo/744edcb4c70d33514ca35ebb14902056 to your computer and use it in GitHub Desktop.
Save yireo/744edcb4c70d33514ca35ebb14902056 to your computer and use it in GitHub Desktop.
Magento 2 gitignore file
# Metadata
/.buildpath
/.cache
/.metadata
/.project
/.settings
atlassian*
/nbproject
/sitemap
/.idea
/.gitattributes
# Magento specific configuration
/app/.htaccess
/app/bootstrap.php
/app/autoload.php
/app/functions.php
/app/etc/di.xml
/app/etc/vendor_path.php
/app/etc/NonComposerComponentRegistration.php
# Files re-generated through composer
/CHANGELOG.md
/CONTRIBUTING.md
/COPYING.txt
/ISSUE_TEMPLATE.md
/LICENSE_AFL.txt
/LICENSE.txt
/Gruntfile.js.sample
/nginx.conf.sample
/package.json.sample
/php.ini.sample
/vendor
/bin
/dev
/lib
/pub
/setup
/var
# Excludes (or a better alternative might be to symlink this to shared folders
!/pub/media/catalog
!/pub/media/downloadable
!/var/composer_home
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment