Skip to content

Instantly share code, notes, and snippets.

@gato-omega
Last active February 24, 2017 23:36
Show Gist options
  • Save gato-omega/153841da9cb9b344f1f9094928fd13b3 to your computer and use it in GitHub Desktop.
Save gato-omega/153841da9cb9b344f1f9094928fd13b3 to your computer and use it in GitHub Desktop.
Rails 5.0.1 reference .gitignore file
# 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'
#######################################################################
# Check gist at #
# https://gist.github.com/gato-omega/153841da9cb9b344f1f9094928fd13b3 #
# #
# Miguel Diaz #
# https://github.com/gato-omega #
# #
# Codescrum LTD #
# https://codescrum.com #
#######################################################################
###################################################
# common files for all #
###################################################
###################
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
############
# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
######################
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
Thumbs.db
#############################################################
######################## Rails 5.0.1 ########################
#############################################################
###################################################
# Environment dependent configuration and secrets #
###################################################
config/database.yml
config/env.yml
config/app_config.yml
config/mongoid.yml
config/secrets.yml
config/cable.yml
.env
.env.test
.env.local
.env.staging
.env.production
.env.development
# also ignore and any other one, including local overrides (for clarity)
.env.*
.env.*.local
# EXCEPT ANY example files
!*.example
###################################################
# All logs and tmp #
###################################################
*.log
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep
###################################################
# sql and sqlite files #
###################################################
*.sql
*.sqlite
*.sqlite3
*.sqlite3-journal
###################################################
# no RVM, use rbenv or chruby instead #
###################################################
.rvmrc
###################################################
# file uploads and others (Spree gem, etc.) #
###################################################
public/system
public/spree
public/uploads
/public/system*
###################################################
# ignore .bundler configuration #
###################################################
.bundle/
###################################################
# file caches #
###################################################
.sass-cache/
.jhw-cache/
###################################################
# simplecov #
###################################################
coverage/
###################################################
# ignore debugger history files #
###################################################
.byebug_history
###################################################
# no specific code editor or IDE configs allowed #
###################################################
.idea/
###################################################
# UNIX TEMP FILES and other stuff #
###################################################
*~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment