How to update one file from the same file in another branch (git)
Untested by me. My need is to carry over just the changes in one file to the same file in another branch in the same git repository.
A simple command already solved the problem for me if I assume that all changes are committed in both branches A and B:
git checkout A
git checkout --patch B f
Read more: Link - git - How do I merge changes to a single file, rather than merging commits? - Stack Overflow