Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4005542
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:24:22+00:00 2026-05-20T08:24:22+00:00

I have a rails 3 application in local. I created reposority and i know

  • 0

I have a rails 3 application in local. I created reposority and i know the basics of git like git. I am using git for heroku but i haven’t push my application to public place before. What i want to learn is :

  1. Which files should i add to git ignore? Because i have some personal passwords and keys in environments.rb and also have some keys in initializers.
  2. If i add some files in git ignore, i guess it will be a problem for people who clones it, because some files will be missing.
  3. I will also keep on working on my application, i can always add new keys to environment.rb or somewhere else. Do i have to clone(branch) my application? I heard something “branch, master” but i have no idea about these terms?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T08:24:23+00:00Added an answer on May 20, 2026 at 8:24 am

    The idea of gitignore is that often there are temporary files, or files that are specific to your IDE. They add nothing to source code, and sometimes they contain sensible information about your machine that you probably don’t want to share.

    This repo on github is a nice collection of gitignore templates:

    https://github.com/github/gitignore

    Rails template is available: https://github.com/github/gitignore/blob/master/Rails.gitignore

    EDIT
    If you have files with you current configuration, which are important for your app, remove all the sensitive information from them, check them in, and after that modify gitignore file.

    If you have already checked in a file with passwords, use this manual: http://help.github.com/removing-sensitive-data/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been using mysql in a new rails application, but now I wanted
I have a Rails application that lists information about local services. My objectives for
I have a rails application that allows searches using longitude and latitude. I have
I am running a Ruby 1.8.6, Rails 1.2 application on Heroku. I am using
I have recently upgraded to Rails 3 and created a new application with Rails
I'm using Heroku Cedar stack for my Rails application, and I want it to
I am using Ruby on Rails v3.0.9 and I have a web application running
I have created a Rails Engine (as per the Rails Guides ) using: rails
I have a RAILS 3.x application developed locally using MySQL which has data which
I have a little problem with my application rails and locale params. I successfully

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.