I'm moving code around at work, and I'm stuck on a particular problem. I have the following architecture :
repo
|- submodule A
| |- folder A1
| |- folder A2
|- folder B
|- folder B1
And I want to move folder A2
into folder B
with the complete history, to end up with this :
repo
|- submodule A
| |- folder A1
|- folder B
|- folder B1
|- folder A2
It seems that git filter-branch
could do the tricks, but I can't find any example about this particular problem.
Thanks.