GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — cache/release_rm.sh at master · zhamengf/cache Expand file tree/ Copy pathrelease_rm.shMore file actions 47 lines (37 loc) · 1.34 KB / Copy pathrelease_rm.shFile metadata and controls47 lines (37 loc) · 1.34 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 #!/usr/bin/env bash echo "============================= RELEASE START..." ## 版本号信息(需要手动指定) oldVersion="0.2.1" newVersion="0.2.1" projectName="${artifactId}" # 删除分支 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 |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |