-
Notifications
You must be signed in to change notification settings - Fork 0
Turning a module into a repository
Sometimes when a project goes bigger it is practical to extract a module into a separate repository.
This page is a guide for this process. It assumes you have filter-repo command for git installed.
The process is described by this GitHub article.
Here are a couple of adjustments.
It is more convenient to clone a copy of existing repo into a new directory, having the dot at the end of the command:
git clone https://github.com/USERNAME/REPOSITORY-NAME .This way you wouldn't have a nested directory with the repo code under the current one.
Instead of this command
git remote set-url origin https://github.com/USERNAME/NEW-REPOSITORY-NAME.gityou may need to run the following command
git remote add origin https://github.com/USERNAME/NEW-REPOSITORY-NAME.gitChances are that you wouldn't have an origin at all to set its URL. So we add instead.
git submodule add https://github.com/SpineEventEngine/config.gitThen:
./config/pullGitHub cannot publish an artifact with the same ID into another repository. Before you start publishing artifacts from the new repository, please make sure you deleted older published versions from GitHub Packages.
Please make sure that new repository is added to Codecov.
- Please describe the purpose of this repository.
- Add appropriate badges for the CI status, the license, and Codecov.
- Please also provide usage instructions for adding the artifact(s) of the new repository to a Gradle project.