I have a local branch that needs to be merged with the remote. Both remote and local branches have lots of different commits (on various files). Is it possible to identify and merge the files which have only fast-forward type (remote-side) changes? I would like to deal with all the other changes manually. git merge --ff-only does not merge anything when there is any two-sided changes.
Edit: I would like to make the question more clear. Let's say the original files (on parent node) are file1, file2, file3, file4. My local branch, I modified file1, file2, deleted file4, added file5. In their remote branch, they modified file1,file3, deleted file4, added file6. I would like to do the following:
- Identify all changes with the information of who made the change (with something like git diff): file1 (both sides) file2, file5 (my side) and file3 and file6 on their side.
- Merge only specific one-sided changes (from their side): After I merge my local with the remote, I should have file3 and file6 as modified in their remote branch and file1,file2,file5 as modified in my local branch. I will deal with file1 and file5 vs file6 manually.