I want to backport a specific commit from a master branch of a project to some older branch that was branched off it. E.g. under "branchA", /my/nice/path/MyClass.java" should receive changes made by a particular commit under "master", to "/my/nice/refactored/file/path/MyClass.java". How do I achieve this "the right way"? (e.g. I can just copy over the changes manually and treat the change in "branchA" as a regular edit, but that doesn't seem right)
In perforce, I could do integrate in a manner that would allow me to specify both paths, including the branches; what's the git equivalent?
Thanks!