We have several branches of one project that share about half of the code and develop them simultaneously with git checkout. Now, the problem came when the model became so diffe
What is usually done for managing the same file with different content amongst branch (without having to deal with merge issue) is to:
use a merge driver (like keepmine) in order to always keep the local version of the file during a merge
or use a filter driver with:
config/databases.yml.tpl
versionedsmudge
' script (versioned) which will combine, on checkout, the template and the right values in order to produce a complete config/databases.yml
The script and the template file are always the same from branch to branch (no merge issue).
The resulting config/databases.yml
remains a private one, not versioned.