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

excluding files from a merge

From
DJDaniel Jacobs <djacobs7@gmail.com>
Date
Mar 15, 2009, 01:23 UTC
Message-ID
<loom.20090315T011519-497@post.gmane.org>

Our project has two main branches set up, one called 'development, and another called 'production'.

Each branch has a file in it called database.yml, (this is a rails project)...
 The development branch and the 
production branch are supposed to have different versions of this file. 
(and not only this file, but other 
config sorts of files as well, but this is a good example).

At the same time, when development is ready for deployment, we will do git checkout production git merge development

I would like it if every file was merged, except for files that were explictly excluded from a merge between these two branches. Is there a good way to do this?

-Daniel
Next: Jay Soffian
Message 1 of 4 in “excluding files from a merge”
  1. Daniel JacobsMar 15, 2009
  2. Jay SoffianMar 15, 2009
  3. Nanako ShiraishiMar 15, 2009
  4. Jay SoffianMar 16, 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.