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

  • SEARCH
  • Home
  • 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 6691191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:43:24+00:00 2026-05-26T05:43:24+00:00

I just inherited an existing codebase that has multiple configuration files in it. These

  • 0

I just inherited an existing codebase that has multiple configuration files in it. These configuration files are all generic, meant to be edited and customized for each machine they are downloaded to. Git is (obviously) telling me that they have been edited and is always showing them under “changes not staged for commit” every time I do a git status. How can I ignore these files under git? Adding them to .gitignore doesn’t work because they are already being tracked by git. I don’t want to commit anything to the repo, but at the same time I want to tell git not to track these files anymore on my local machine. Is there a way of doing this that I’m not aware of? I know I can git stash them and they won’t be shown anymore, but I feel that is not really what it was meant for… Am I wrong?

Not sure if this changes anything, but I am using git-svn on my local machine to interact with the SVN server.

  • 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-26T05:43:24+00:00Added an answer on May 26, 2026 at 5:43 am

    I do something like David Schwartz suggests, which is to create something like shell/template configurations like database.yml.template and then copy that file and configure it for my environment as database.yml. Then I can .gitignore those new files.

    If you want to do it without modifying how the files exist in repo, then:

    git update-index --assume-unchanged [filename]
    

    Will make git ignore changes to that file, but you have to be conscious of doing it.

    More information here: http://gitready.com/intermediate/2009/02/18/temporarily-ignoring-files.html

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

Sidebar

Related Questions

I've just inherited a java application that needs to be installed as a service
I have just inherited a server application, however it seems that the only copy
I've just inherited a project, and been told that an entire folder, includes/ needs
My PHP experience is rather limited. I've just inherited some stuff that looks odd
I've inherited a web app that I've just discovered stores over 300,000 usernames/passwords in
I've inherited a large set of NHibernate mappings that live in an existing, functional
I'm working on a message-passing runtime system that has existing message allocation code that
I'm working with a developer here who just inherited an existing site. It is
I have inherited a existing website with a large codebase. To handle ajax requests,
I've just inherited some code that uses HibernateEntityQuery and EJBQL restrictions. There's an activity

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.