Sync a monolithic repository into multiple standalone subtree repositories.
- bash
- git
- splitsh-lite
./sync.sh [branch] [origin] [path-to-repos]$ ./sync.sh master git@github.com:SimonBaeumer/sync-monorepo.git repos
./sync.sh master git@github.com:SimonBaeumer repos/Note: git rev-parse --abbrev-ref HEAD returns the current branch
ssh-keygen -t rsa -b 4096 -C "<your_email>" -f github_deploy_key -N ''- Add the
github_deploy_key.pubwithwrite_accessas a deploy key to your synced repo - Add the
github_deploy_keyas 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.
to be done