#!/bin/bash # cd /data/project/web/tingbang # git pull # cd /data/project/web/tingbang/htmldev/dashboard # npm run build # 生产 ssh root@1.15.137.157 # 测试 ssh root@81.68.157.237 #function git.branch { # br=`git branch | grep '*'` # echo ${br/* /} #} # #git pull #git status #read -p "Enter your commit_message,please: " commit_message #git add . #git commit -m ${commit_message} #git push origin ${git.branch} #echo '代码提交成功'