mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-02 11:48:08 +08:00
37 lines
948 B
Bash
Executable File
37 lines
948 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
set -x
|
|
|
|
CURRENT_BRANCH="master"
|
|
|
|
function split()
|
|
{
|
|
SHA1=`./bin/splitsh-lite --prefix=$1`
|
|
git push $2 "$SHA1:refs/heads/$CURRENT_BRANCH" -f
|
|
}
|
|
|
|
function remote()
|
|
{
|
|
git remote add $1 $2 || true
|
|
}
|
|
|
|
git pull origin $CURRENT_BRANCH
|
|
|
|
remote config git@github.com:hyperf-cloud/config.git
|
|
remote di git@github.com:hyperf-cloud/di.git
|
|
remote dispatcher git@github.com:hyperf-cloud/dispatcher.git
|
|
remote framework git@github.com:hyperf-cloud/framework.git
|
|
remote grpc-server git@github.com:hyperf-cloud/grpc-server.git
|
|
remote http-server git@github.com:hyperf-cloud/http-server.git
|
|
remote memory git@github.com:hyperf-cloud/memory.git
|
|
remote utils git@github.com:hyperf-cloud/utils.git
|
|
|
|
split 'src/config' config
|
|
split 'src/di' di
|
|
split 'src/dispatcher' dispatcher
|
|
split 'src/framework' framework
|
|
split 'src/grpc-server' grpc-server
|
|
split 'src/http-server' http-server
|
|
split 'src/memory' memory
|
|
split 'src/utils' utils |