GitIgnore File for rails

Create a .gitignore file to tell git which files or folders to ignore in your rails project.

# Created by https://Shodkk.com/create-gitignore (Shantanu Bombatkar) SirDeploy Package
# It helps deploy fakeserver ReactApp on Heroku and Github Pages
#  Hope it helps || Thanks for Using SirDeploy Package

### Rails ###
*.rbc
capybara-*.html
.rspec
/db/*.sqlite3
/db/*.sqlite3-journal
/db/*.sqlite3-[0-9]*
/public/system
/coverage/
/spec/tmp
*.orig
rerun.txt
pickle-email-*.html

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

# TODO Comment out this rule if you are OK with secrets being uploaded to the repo
config/initializers/secret_token.rb
config/master.key

# Only include if you have production secrets in this file, which is no longer a Rails default
# config/secrets.yml

# dotenv, dotenv-rails
# TODO Comment out these rules if environment variables can be committed
.env
.env*.local

## Environment normalization:
/.bundle
/vendor/bundle

# these should all be checked in to normalize the environment:
# Gemfile.lock, .ruby-version, .ruby-gemset

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc

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

# Ignore pow environment settings
.powenv

# Ignore Byebug command history file.
.byebug_history

# Ignore node_modules
node_modules/

# Ignore precompiled javascript packs
/public/packs
/public/packs-test
/public/assets

# Ignore yarn files
/yarn-error.log
yarn-debug.log*
.yarn-integrity

# Ignore uploaded files in development
/storage/*
!/storage/.keep
/public/uploads

 # Star the Repo https://github.com/shaantanu9/SirDeploy
# https://www.linkedin.com/in/shantanu-bombatkar/ 
# End of File
Download rails.gitignore

List Of Files and Folders That Get Ignored using this Gitignore code

Above Code Helps ignore following files from rails Project

Ignore all logfiles and tempfiles.

TODO Comment out this rule if you are OK with secrets being uploaded to the repo

Only include if you have production secrets in this file, which is no longer a Rails default

config/secrets.yml

dotenv, dotenv-rails

TODO Comment out these rules if environment variables can be committed

these should all be checked in to normalize the environment:

Gemfile.lock, .ruby-version, .ruby-gemset

unless supporting rvm < 1.11.0 or doing something fancy, ignore this:

if using bower-rails ignore default bower_components path bower.json files

Ignore pow environment settings

Ignore Byebug command history file.

Ignore node_modules

Ignore precompiled javascript packs

Ignore yarn files

Ignore uploaded files in development

If you have any questions or suggestions please feel free to contact us


Feedback is the most important part of any website.

If you have any query, suggestion or feedback, Please feel free to contact us.