I believe that git filter-branch can allow me to do this, but I can't figure out if i need to use --subdirectory-filter or if I need to use an index filter.
But, let's say I have a repository called repo, and the structure looks something like:
repo/fileA
repo/fileB
repo/dir1/fileC
What I want to do is move everything in to a directory called dir2 so the result is:
repo/dir2/fileA
repo/dir2/fileB
repo/dir2/dir1/fileC
I want to use filter-branch to make it look like ever since the birth of this repository, everything was always done in dir2. Is it more appropriate to use a subdirectory file or index filter to do this?