3 Star 4 Fork 1

hunzhiwange/framework

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
split.sh 941 Bytes
一键复制 编辑 原始数据 按行查看 历史
小牛New 提交于 2024-01-28 01:00 . 修改一下发布脚本
#!/usr/bin/env bash
set -e
CURRENT_BRANCH="master"
for REMOTE in auth cache config console database debug di encryption event filesystem http i18n kernel log page router server session support validate view
do
echo ""
echo ""
echo "Split $REMOTE";
TMP_DIR="./leevel-split"
REMOTE_URL="[email protected]:leevels/$REMOTE.git"
rm -rf $TMP_DIR;
mkdir $TMP_DIR;
(
SPLIT_NEW_BRANCH="split-tmp-branch"
REMOTE_DIR=$(echo ${REMOTE:0:1} | tr 'a-z' 'A-Z');
TMP_DIR_END=$(echo ${REMOTE:1});
REMOTE_DIR=${REMOTE_DIR}${TMP_DIR_END}
git subtree split -P "src/Leevel/$REMOTE_DIR" -b $SPLIT_NEW_BRANCH
cd $TMP_DIR;
git init --initial-branch=master;
git pull ../ $SPLIT_NEW_BRANCH
git push -f "[email protected]:leevels/$REMOTE.git" "master:$CURRENT_BRANCH"
cd -
git branch -D $SPLIT_NEW_BRANCH
rm -rf $TMP_DIR;
)
done
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/dyhb/framework.git
[email protected]:dyhb/framework.git
dyhb
framework
framework
master

搜索帮助