for_push.sh 375 B

1234567891011121314151617
  1. cd portal/
  2. echo "========== Building portal =========="
  3. npm run build
  4. echo "========== Git adding portal ========== "
  5. git add .
  6. cd ../
  7. git add .
  8. echo "========== Git status =========="
  9. git status
  10. # 读参数提交信息
  11. param1=$1
  12. echo "========== Git commiting =========="
  13. echo "Commit message: $param1"
  14. git commit -m "$param1"
  15. echo "========== You Can Push Now=========="