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 7923919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T17:29:28+00:00 2026-06-03T17:29:28+00:00

I sometimes work with Codeigniter, and after I’m done developing on the local site,

  • 0

I sometimes work with Codeigniter, and after I’m done developing on the local site, I need to migrate the files to the server. All the files in the /config/ folder need to be changed to match the Server settings. It’s not right to make an entire commit for these changes, do I simply make Git ignore these files altogether, or is there a way to track these changes and apply them with Git at the right moment?

  • 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-06-03T17:29:29+00:00Added an answer on June 3, 2026 at 5:29 pm

    You could keep versioned:

    • two “value config files”, with the right values for each environment
    • a template config file, with value placeholder in it (for instance, @@PORT_NUMBER@@)
    • a script able to generate the actual config file depending on the current environment
    • a content filter driver which, on checkout, will trigger the script in order to generate the right config file.

    content filter driver

    Note: that supposes your template config file has a recognizable content (the filter doesn’t have a name or path of the file). See “Git equivalent of subversion’s $URL$ keyword expansion” for more on the limitation of git content filter driver).

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

Sidebar

Related Questions

Sometimes, when I work with C/C++ source files in VS2010 editor, window font size
I work on a pretty large rails project at work. Sometimes I need to
what does putting () after a word do? sometimes it doesn't work
I've setup clean URLs on CodeIgniter through .htaccess and they work fine. Sometimes though
I am using mvim with plugin JavaScriptLint. It works great. However sometimes I work
Many times I work with optimized code (sometimes even involving vectorized loops), which contain
I'm having quite some trouble with the WCF Callback mechanism. They sometimes work but
I'm working on a C# app that uses SQL 2008 express. Sometimes I work
Sometimes I work with a file that contains source code, columns, plain text, sometimes
Why does the PRINT statement in T-SQL seem to only sometimes work? What are

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.