I use git to manage the repository I'm working on.
The master branch is the main project. However, I am also working on a parallel product that is similar but not the same as the main product. He lives in branches named newproject .
The code base is very similar to the two, but newproject more truncated and has some basic changes. However, tons of window design elements, such as CSS, javascript, etc., are the same between two branches.
On the other hand, I deleted many files in the newproject branch that still exist in master .
I donβt want to merge these projects together, like the typical case with branches, where you create a branch to add a function or fix a bug, and then go back to master - these branches will live independently forever.
However, I still want to get any corrections from master in newproject , where there are still overlap / shared files.
If I just do
$ git checkout newbranch $ git pull origin master
I get a boat of conflicts because all deleted files appear as conflicts because they still exist in master .
Is there any way to handle this situation?
source share