New Ruby On Rails App : things git needs to ignore in .gitignore

One should not allow git to stage all the files within the application directory. Things need to be filtered out in terms of security, privacy and relevance. Some of the files / dirs to be ignored are listed below. You can simple copy and paste inside your app_room/.gitignore

# Rubymine project 
.idea/

# Test and misc files
*.rbc
capybara-*.html
.rspec
/public/system
/coverage/
/spec/tmp
**.orig
rerun.txt
pickle-email-*.html

# Ignore bundler config.
/.bundle

# Ignore the default SQLite database and schema.
/db/*.sqlite3
/db/*.sqlite3-journal
/db/schema.rb

# Configs
/config/database.yml

# Ignore all logfiles and tempfiles.
/log/*.log
/tmp

# Ignore rmvrc
.rvmrc

# If using bower-rails ignore default bower_components path bower.json file
/vendor/assets/bower_components
*.bowerrc
bower.json

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s