I have a project I’ve been working on some experimental changes. To a sub-project in directory A. However, in the master branch of the project the sub-project has moved to so a separate directory, directory B.
I have about 10 commits I want to effectively cherry-pick into master, but how can I tell git to put the old directory into the new one?
Later
I tried to cherry pick because I wanted to only introduce my changes and keep the history clean. It’s not just file moves. I’ve also added new classes as well. It didn’t detect all of the moves either.(the first file that comes to mind is pom.xml)
You can convert these commits to patches, edit the patches manually (substituting old paths with new paths) and then apply.