Skip to content

Instantly share code, notes, and snippets.

@ar2pi
Created April 9, 2018 13:55
Show Gist options
  • Save ar2pi/f8e8970a8a821460eea9160f2321f453 to your computer and use it in GitHub Desktop.
Save ar2pi/f8e8970a8a821460eea9160f2321f453 to your computer and use it in GitHub Desktop.
Simple .gitignore for Symfony3+ based project
# Symfony
.web-server-pid
app/config/parameters.yml
build/
phpunit.xml
var/*
!var/cache
var/cache/*
!var/cache/.gitkeep
!var/logs
var/logs/*
!var/logs/.gitkeep
!var/sessions
var/sessions/*
!var/sessions/.gitkeep
!var/SymfonyRequirements.php
vendor/
web/bundles/
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# php server
pids
*.pid
*.seed
*.pid.lock
# stuff
lib-cov
coverage
.nyc_output
.grunt
.lock-wscript
# dependencies stuff
bower_components
node_modules/
jspm_packages/
# more stuff
.npm
.eslintcache
.node_repl_history
*.tgz
.yarn-integrity
.sass-cache
# OS specific
.DS_Store
# IDE / Editor specific
.vscode/
.idea/
nbproject/
# environment variables
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment