Let's say I have a repo that includes this directory structure:
repo/
blog/
_posts/
some-post.html
another-file.txt
I want to move _posts to the top level of the repo, so the structure will look like this:
repo/
_posts/
some-post.html
another-file.txt
This is simple enough with git mv, but I want to make the history look as though _posts always existed at the root of the repo, and I want to be able to get the entire history of some-post.html via git log -- _posts/some-post.html. I imagine I can use some magic with git filter-branch to accomplish this, but I haven't figured out exactly how to do that. Any ideas?