This reposiory is used to manage all swoft components.
All components will NOT be modified in the original repository of component, SHOULD ALWAYS be modified in this repository, also commit and push to this repository, and use git subtree push to sync changes to the original repository of component.
git subtree add --prefix=src/[folder] [repository] [ref] --squashNote that
--squashoption is required.
e.g. Add swoft/pipeline component as an Sub Repository,
git subtree add --prefix=src/pipeline git@github.com:swoft-cloud/swoft-pipeline master --squashJust use git commit as usual, and Push to this repository
git subtree push --prefix=src/[folder] [repository] [ref] --squashNote that
--squashoption is required.
e.g. Add swoft/pipeline component as an Sub Repository
git subtree push --prefix=src/pipeline git@github.com:swoft-cloud/swoft-pipeline master --squashTips: You could use
remoteto instead of[repository]property for easier to use.
e.g. AddRemotefirst,git remote add -f pipeline git@github.com:swoft-cloud/swoft-pipeline.git,
after this, you could usepipelineinstead of[repository],
for examplegit subtree push --prefix=src/pipeline pipeline master --squash
After Sync changes to the Original Repository of Component, you just need to Release a new version in the original repository of component.
We do NOT suggest modify code in the original repository, but if you do, you could use the command below to merge it.
git subtree pull --prefix=src/[folder] [repository] [ref] --squashNote that
--squashoption is required.
e.g. Pull swoft/pipeline repository into src/pipeline
git subtree pull --prefix=src/pipeline git@github.com:swoft-cloud/swoft-pipeline master --squash