1 Star 6 Fork 5

houbb / nlp-hanzi-similar

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
release_rm.sh 1.35 KB
一键复制 编辑 原始数据 按行查看 历史
binbin.hou 提交于 2021-11-22 14:57 . Initial commit
#!/usr/bin/env bash
echo "============================= RELEASE START..."
## 版本号信息(需要手动指定)
oldVersion="0.1.11"
newVersion="0.1.11"
projectName="nlp-hanzi-similar"
# 删除分支
oldBranchName="release_"${oldVersion}
git branch -d ${oldBranchName}
git push origin --delete ${oldBranchName}
echo "1. Branch remove success..."
# 拉取新的分支
newBranchName="release_"${newVersion}
git branch ${newBranchName}
git checkout ${newBranchName}
git push --set-upstream origin ${newBranchName}
echo "2. NEW BRANCH DONE."
# 修改新分支的版本号
## snapshot 版本号
snapshot_new_version=${newVersion}"-SNAPSHOT"
mvn versions:set -DgroupId=com.github.houbb -DartifactId=${projectName} -DoldVersion=${release_version} -DnewVersion=${snapshot_new_version}
mvn -N versions:update-child-modules
mvn versions:commit
git add .
git commit -m "modify branch ${release_version} TO ${snapshot_new_version}"
git push
git status
echo "3. MODIFY ${release_version} TO ${snapshot_new_version} DONE."
echo "============================= BRANCH RE-CREATE END..."
echo "============================= BRANCH LIST ============================="
git branch -a
# 使用方式:
# 注意:本脚本用于删除分支,谨慎使用!
# 1. 赋值权限: chmod +x ./release_rm.sh
# 2. 执行: ./release_rm.sh
# Last Update Time: 2018-06-21 11:10:42
# Author: houbb
Java
1
https://gitee.com/houbinbin/nlp-hanzi-similar.git
git@gitee.com:houbinbin/nlp-hanzi-similar.git
houbinbin
nlp-hanzi-similar
nlp-hanzi-similar
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891