Skip to content

Instantly share code, notes, and snippets.

@mistergraphx
Created April 22, 2019 05:56
Show Gist options
  • Save mistergraphx/081063b6b7f24adb3b26d8b840458aab to your computer and use it in GitHub Desktop.
Save mistergraphx/081063b6b7f24adb3b26d8b840458aab to your computer and use it in GitHub Desktop.
gitattributes (ignore files or folders in production environement)
# Path-based git attributes
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
# https://www.reddit.com/r/PHP/comments/2jzp6k/i_dont_need_your_tests_in_my_production/
# Ignore all test and documentation with "export-ignore".
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.scrutinizer.yml export-ignore
/.styleci.yml export-ignore
/.travis.yml export-ignore
/PULL_REQUEST_TEMPLATE.md export-ignore
/ISSUE_TEMPLATE.md export-ignore
/phpcs.xml.dist export-ignore
/phpunit.xml.dist export-ignore
/tests export-ignore
/docs export-ignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment