Skip to main content

extract a monorepo subdir

Project description

mono2repo

This module (and related script) creates a new stand alone repo out of monorepo subtree, including all the subtree history and commits.

Install

pip intall mono2repo

Example

This is the pelican git source tree:

https://github.com/getpelican/pelican-plugins.git
   ....
    summary/
    ├── Readme.rst
    └── summary.py

We want to extract the summary subdir and git log related entries.

Create a new repo

Create a new repo out of the pelican summary subtree:

mono2repo init summary-extracted \
    https://github.com/getpelican/pelican-plugins.git/summary

Update the repo

Update the summary-extracted with the latest summary related changes:

mono2repo update summary-extracted

(see https://blog.getpelican.com/namespace-plugin-migration.html for more details)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mono2repo-0.0.3b7.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

mono2repo-0.0.3b7-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page