git/list[1] front-page[2] threads[3] people[4] search[5] about
 

suggestions for local configs?

From
TRTim Rupp <caphrim007@gmail.com>
Date
Nov 6, 2009, 03:11 UTC
Message-ID
<4AF393EE.4030205@gmail.com>

Hi list, I'm wrestling with a question and figured that someone on the list may have some suggestions that have worked for them.

I have a piece of software that has default and local configuration files. The default files ship with the tarball. The local files are copied over from the default folder during installation and can be modified for a particular install.

I clone my source repo on my test and prod systems, but have gotten in the bad habit of versioning the local configuration files. My (albeit pathetic) excuse is that when I test the code I may accidentally dork with the local config files and need to revert back to the correct ones.

At the same time though, I do want to version said local configs in something so that if changes are made and they need to be backed out, it can be done and there is the commit log that keeps track of what changed.

So the question is
- Can anyone suggest good ways of setting up git to track both the code
and local configs without making a whole new repository (code repo and
code config repo)

If not, any other suggestions are welcome and I'll consider how best to make them work in my environment.

I've briefly skimmed through the pro git book online and considered sub modules and sub-tree merging, but the kicker is that I may need to push the whole kit-n-kaboodle master repo to remote git servers and those two approaches sound hairy.

Any help is appreciated.

Thanks, Tim

Next: Johannes Sixt
Message 1 of 2 in “suggestions for local configs?”
  1. Tim RuppNov 6, 2009
  2. Johannes SixtNov 6, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.