First of all, there is a good chance my brain is just fried and am not thinking clearly... I am not even sure how to explain this properly :(
I have two repositories, Framework, and Client1.
The first one has all the files, including some that will be modified in the Client repo. These are just considered placeholders, or example files.
The second repository, Client1, contains added files that don't belong to Framework, as well as modifying some of the files from the Framework repo.
The Client1 repo starts off by pulling the Framework repo in, then I add/edit files to fit the clients website. When the Framework repo files are changed, I merge them into the Client1 repo.
This will end up causing conflicts. There is a chance there could be many conflicts.
Can I git pull
and accept only my files for the conflicts, in one command? Just to make things faster.
Or is there anyway to do this better?
EDIT: We have changed our framework so core files are not touched by the client. They instead put files in another folder if they need to override the framework file.
For example:
The client needs to modify the Contact page controller which is located in /framework/application/controller/contact/index.php
.
The client creates a file in /application/controller/contact/index.php
to override the one in framework.
We have also start to use Git-Flow.