Does git support a view where different files come from different branches?
Here is my setup -- I have a simple git branch structure with master being used for all development and installs at the client site. Since the client setup is different from my setup, I have a small number of a files on a different branch, called "my_company_name". Files that specify hostnames, for example, would be in this category.
What I'd like to do is work on the master branch, but get specific files from my_company_name. I understand that I could accomplish the same thing by:
- git checkout my_company_name
- git merge origin master
but I would need to specify 'origin master' each time I push, or the files will be going to my_company_name. If I do the opposite:
- git checkout master
- git merge origin my_company_name
then I would need to make changes in the site-specific files before installing at the client site.
How does git support this?