Skip to content

Sync a monolithic repository into standalone subtree repositories.

Notifications You must be signed in to change notification settings

SimonBaeumer/sync-monorepo

Repository files navigation

Build Status

Syncing monorepo into subtree repositories

Sync a monolithic repository into multiple standalone subtree repositories.

Dependencies

Usage

./sync.sh [branch] [origin] [path-to-repos]

Example

$ ./sync.sh master git@github.com:SimonBaeumer/sync-monorepo.git repos

Terminal

./sync.sh master git@github.com:SimonBaeumer repos/

Note: git rev-parse --abbrev-ref HEAD returns the current branch

Travis

Create ssh-keys

  1. ssh-keygen -t rsa -b 4096 -C "<your_email>" -f github_deploy_key -N ''
  2. Add the github_deploy_key.pub with write_access as a deploy key to your synced repo
  3. Add the github_deploy_key as an encrypted environment variable to your monorepo (tutorial)

However, there is an "issue" with travis that you need a new deploy key for every repository you want to sync.

GitLab

to be done

About

Sync a monolithic repository into standalone subtree repositories.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages