Skip to content

Instantly share code, notes, and snippets.

@kriskhaira
Last active March 25, 2019 23:20
Show Gist options
  • Save kriskhaira/4022382 to your computer and use it in GitHub Desktop.
Save kriskhaira/4022382 to your computer and use it in GitHub Desktop.
My usual .gitignore template
#----------------------------------------------------------------------------
# EMBER-CLI DEFAULT
#----------------------------------------------------------------------------
# See http://help.github.com/ignore-files/ for more about ignoring files.
# compiled output
/dist
/tmp
# dependencies
/node_modules
/bower_components
# misc
/.sass-cache
/connect.lock
/coverage/*
/libpeerconnection.log
npm-debug.log
testem.log
#----------------------------------------------------------------------------
# DIVSHOT
#----------------------------------------------------------------------------
.divshot-cache
#----------------------------------------------------------------------------
# RUBY ON RAILS 4 - DEFAULT
#----------------------------------------------------------------------------
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'
# Ignore bundler config.
/.bundle
# Ignore the default SQLite database.
/db/*.sqlite3
/db/*.sqlite3-journal
# Ignore all logfiles and tempfiles.
/log/*.log
/tmp
#----------------------------------------------------------------------------
# RUBY ON RAILS 4 - ADDITIONAL
#----------------------------------------------------------------------------
vendor/gems/*
vendor/bundle
db/redis*
.rvmrc
.rails_dev
config/mongoid.yml
config/*_local.yml
config/redis.*.conf
config/aws.yml
config/application.yml
config/database.yml
.powenv
.powrc
#----------------------------------------------------------------------------
# MISC
#----------------------------------------------------------------------------
.*cache
*.log
cache/*
backup
_files
log
log/**/*
.monitor
Forwardfile
# OS X Files
.DS_Store
Thumbs.db
*.swp
*.swo
*.lnk
*~
# IDE FILES
*.sublime-*
*.tmproj
# BOWER & BUILD TOOLS
/build/*
/bower_components/*
# SASS
*.sassc
# ZEUS
zeus.json
custom_plan.rb
# NODE
.node_modules
node_modules
*/node_modules
/node_modules/*
# SYMFONY
/web/bundles/
/app/bootstrap*
/app/cache/*
/app/logs/*
/vendor/
/app/config/parameters.yml
composer.phar
# DRUPAL
sites/*/settings*.php
sites/*/files
sites/*/private
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment