Open bvdham opened 4 years ago
I have success using Laravel sh file https://github.com/laravel/framework/blob/7.x/bin/split.sh.
Step 1: Commit everything in your main repo. make sure the sub package you want to split don't have git initialized. Step 2: Create a new remote repository for the sub package. Step 3: Edit the necessary information in the Laravel split.sh file. Step 4: Run the split.sh file.
Note: Run split.sh file every time you have a new commit in your main repo to sync everything in your sub packages.
@dluague Thank you, that could help me out. Question is it also possible to use tags?
@bvdham you need to use their release.sh for tag support. https://github.com/laravel/framework/blob/7.x/bin/release.sh
Some examples here would be nice.
I'm not sure if this is the place to ask for some examples while trying to split and push a sub packe to a new repo. Maybe an examples could eventually be added to the main readme.
I'm trying to build my own monorepo https://github.com/symmono/symmono with for example a sub package framework-bundle https://github.com/symmono/framework-bundle.
On the main branch (master) i'm running
Now i'm trying to push it to the framework-bundle repo
Can't get my head around it how to split and push it to a new repo. And how to push to a branch and is it possible with splitsh to use tags.
trying to push to branch
git push git@github.com:symmono/framework-bundle.git c5a195e73c6e2317f44fae252c1d2ae3beb323e7 0.1 error: src refspec 0.1 does not match any. error: failed to push some refs to 'git@github.com:symmono/framework-bundle.git'