I've been following the instructions on this answer from "Detach subdirectory into separate Git repository" on how to use the git subtree command in order to split a subdirectory out of a git repository. It worked on the first subdirectory, but my second directory gets split with missing commits.
My directory tree looks like this:
GitBooks
|
------ SQLBasics
|
------ RubyProgramming
I want to split both of these into their own separate repositories, and I have already done so on SQL-Basics
. However, on RubyProgramming
whenever I follow the exact same instructions from the above answer, the subdirectory gets split and is missing a bunch of commits. I'm pretty sure the reason is because I changed the directory name from Ruby Programming
to RubyProgramming
(notice the space in between) at one point in time, and I guess it's only carrying over the commits from RubyProgramming
(no space).
My question is how do I carry over ALL of the commits from this subdirectory, even though I changed its name at one point in time. Is it possible to do this?
Thank you in advance.