devshell.sh 395 B

123456789101112131415161718
  1. #!/bin/bash
  2. # cd /data/project/web/tingbang
  3. # git pull
  4. # cd /data/project/web/tingbang/htmldev/dashboard
  5. # npm run build
  6. # ssh root@81.68.157.237
  7. function git.branch {
  8. br=`git branch | grep '*'`
  9. echo ${br/* /}
  10. }
  11. git pull
  12. git status
  13. read -p "Enter your commit_message,please: " commit_message
  14. git add .
  15. git commit -m ${commit_message}
  16. git push origin ${git.branch}
  17. echo '代码提交成功'