Move more than one directory into a new repository¶
This post is archived. It is left as is and won't receive updates.
I just realized that my previous post on how to move one directory from one repository to another really only works for one directory.
Fortunately, there is a very easy solution to that using a nice little tool called git_filter.
Basically follow the instructions of it's README
.
Then, all I did was put the two directories into the filter file.
It is important to note here that this file had to end with an empty line in my case, otherwise the last directory will be ignored.
You will get a new branch, which can be pushed to an empty repository:
It also works for one directory and is a lot faster compared to the other method.
Comments
Comments are currently not supported. For the time being, please send me an email.