Skip to content

Instantly share code, notes, and snippets.

@BadAllOff
Last active September 15, 2015 02:31
Show Gist options
  • Save BadAllOff/7fc39cb98e2d9bfdaf1c to your computer and use it in GitHub Desktop.
Save BadAllOff/7fc39cb98e2d9bfdaf1c to your computer and use it in GitHub Desktop.
A Sample Rails .gitignore file
# See http://help.github.com/ignore-files/ for more about ignoring files.
# Based on https://gist.github.com/chrishough/6488118
#
# 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 specific config files
###############################################################################################
.bundle/*
!.bundle/config
config/application.yml
###############################################################################################
# Ignore all logfiles and tempfiles.
###############################################################################################
/log/*.log
/tmp
###############################################################################################
# Ignore application configurations
###############################################################################################
.chef
.vagrant
###############################################################################################
# Ignore local asset pipline cache files, local Paperclip Carrierwave folders
###############################################################################################
/public/assets
/public/system/*
###############################################################################################
# APPLICATION #
###############################################################################################
*.com
*.class
*.dll
*.exe
*.o
*.so
*.psd
*.ai
*.ase
###############################################################################################
# Packages #
###############################################################################################
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
###############################################################################################
# Logs and databases #
###############################################################################################
*.log
*.sql
*.sqlite
###############################################################################################
# OS generated files #
###############################################################################################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
Thumbs.db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment