#!/bin/bash # cd /data/project/web/tingbang # git pull # cd /data/project/web/tingbang/htmldev/dashboard # npm run build # ssh root@81.68.157.237 git pull git add . git commit -m "commit_message" git push origin branch_name echo '代码提交成功'