devshell.sh 893 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #!/bin/bash
  2. # 测试环境 ssh root@124.222.192.138
  3. # cd /data/project/my_loan/
  4. # git pull
  5. # panyong/panyong123456
  6. # cd htmldev/shiningManage
  7. # cd htmldev/loan
  8. # cd htmldev/shiningH5
  9. # npm run build
  10. # 生产环境 ssh root@81.68.73.90
  11. # cd /data/project/qianduan/my_loan
  12. # npm run build:pro
  13. #function git.branch {
  14. # br=`git branch | grep '*'`
  15. # echo ${br/* /}
  16. #}
  17. # git pull
  18. # git status
  19. # read -p "Enter your commit_message,please: " commit_message
  20. # git add .
  21. # git commit -m ${commit_message}
  22. # git push origin ${git.branch}
  23. # echo '代码提交成功'
  24. # 移除源
  25. # git remote remove origin
  26. # 添加新源
  27. # git remote add origin http://124.222.192.138:3000/front_end/swago.git
  28. # git pull
  29. # git branch --set-upstream-to=origin/master master
  30. # git pull origin master
  31. # 如果报histories什么的错误,就执行下面的
  32. # git pull origin master --allow-unrelated-histories