I've got a project which has a master branch and a stable branch - the branches diverged long time ago. Now I've got a couple commits on the stable branch, which I also want to have on the master branch (a bug fix). I cannot merge, as the branches diverged and there's loads of unmerged changes - I just want the 4 commits.
So I tried cherry-pick. However this fails since the top-level modules names changed from "project-module" scheme to "module". When cherry-picking, GIT creates the new files in the old directories (as on the old branch): the rename isn't detected. That's possibly because I get this warning:
warning: too many files (created: 278 deleted: 5364), skipping inexact rename detection
I tried git format-patch + git am, but this again creates the files in the old directories.
How can I apply the commits to the master branch?
Thanks, Adam