Skip to content

Instantly share code, notes, and snippets.

@papricek
Created August 21, 2012 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save papricek/3418963 to your computer and use it in GitHub Desktop.
Save papricek/3418963 to your computer and use it in GitHub Desktop.
Sample .gitignore file for kinda typical rails app
# What are .gitignore files for? Well, not everything should be stored in a repo.
# Typically your IDE files, log files, or database related stuff (like paperclip attachments in public/system)
.DS_Store # because Mac file system
/.rvmrc # when you have .rvmrc file with default rails and gemset
/.idea # RubyMine project stuff
/.bundle # Bundler temp stuff
/db/*.sqlite3 # DB file, when using sqlite
/config/database.yml # db config - this is probably the only line here, that not including is both bad practice and dangerous
/log/*.log # wanna store gigabytes of logs in repo? c'mon...
/tmp # yeah, cache, pid files,... dont store that, too!
/db/schema.rb # if more branches and more developers are on this project - conflicts are not fun
/public/system # default public shared stuff folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment