Friday, 28 December 2018

GIT: Splitting Up a Git Repository



Here’s the situation: you have a Git repository and you want to split it up into smaller repositories. Perhaps you have an application that has grown to large and you need to break out parts of into their own application (as services) or maybe as their libraries.
Whatever your reason is, the task is the same: how do I get this big Git repository broken out into two (or more)? And how do I do that while also maintaining the history of the changes in the directory I’m splitting out?
That is our most important requirement: we don’t want to lose the history of the files that we’re splitting up from the repository.
Let’s go through the steps.

0 comments:

Post a Comment