clone&pull tool.bat 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. chcp 65001>nul
  2. @echo off & color 0A
  3. @title git tool
  4. rem 当前文件夹名称
  5. pushd %1 & for %%i in (.) do set curr=%%~ni
  6. if "%curr%"=="WingCloudServer" (
  7. cd ..
  8. goto Main
  9. ) else (
  10. echo the current folder is %curr%, operation was cancelled!
  11. pause>nul
  12. exit
  13. )
  14. :Main
  15. echo [正在检查获取远程项目文件,请勿关闭当前操作页]
  16. for /d %%i in (*) do (
  17. cd %%i
  18. if exist *.git (
  19. echo ---------------------- %%i ----------------------
  20. chdir && git pull
  21. )
  22. cd ..
  23. )
  24. echo;
  25. if not exist WingAIDiagnosisService (git clone http://git.ius.plus/Project-Wing/WingAIDiagnosisService.git && echo;)
  26. if not exist WingCloudServer (git clone http://git.ius.plus:88/Project-Wing/WingCloudServer.git && echo;)
  27. if not exist WingDeviceService (git clone http://git.ius.plus:88/Project-Wing/WingDeviceService.git && echo;)
  28. if not exist WingEmailModule (git clone http://git.ius.plus:88/Project-Wing/WingEmailModule.git && echo;)
  29. if not exist WingInterfaceLibrary (git clone http://git.ius.plus:88/Project-Wing/WingInterfaceLibrary.git && echo;)
  30. if not exist WingManagementModule (git clone http://git.ius.plus:88/Project-Wing/WingManagementModule.git && echo;)
  31. if not exist WingMongoDBModule (git clone http://git.ius.plus:88/Project-Wing/WingMongoDBModule.git && echo;)
  32. if not exist WingNotificationModule (git clone http://git.ius.plus/Project-Wing/WingNotificationModule.git && echo;)
  33. if not exist WingRemedicalModule (git clone http://git.ius.plus:88/Project-Wing/WingRemedicalModule.git && echo;)
  34. if not exist WingReportService (git clone http://git.ius.plus/Project-Wing/WingReportService.git && echo;)
  35. if not exist WingServerCommon (git clone http://git.ius.plus:88/Project-Wing/WingServerCommon.git && echo;)
  36. if not exist WingSessionModule (git clone http://git.ius.plus:88/Project-Wing/WingSessionModule.git && echo;)
  37. if not exist WingSMSModule (git clone http://git.ius.plus:88/Project-Wing/WingSMSModule.git && echo;)
  38. if not exist WingStorageModule (git clone http://git.ius.plus:88/Project-Wing/WingStorageModule.git && echo;)
  39. if not exist WingUserModule (git clone http://git.ius.plus:88/Project-Wing/WingUserModule.git && echo;)
  40. if not exist WingVinnoImageData (git clone http://git.ius.plus/Project-Wing/WingVinnoImageData.git && echo;)
  41. if not exist WingLiveConsultationService (git clone http://git.ius.plus/Project-Wing/WingLiveConsultationService.git && echo;)
  42. if not exist WingRtmpService (git clone http://git.ius.plus/Project-Wing/WingRtmpService.git && echo;)
  43. if not exist WingRtcService (git clone http://git.ius.plus/Project-Wing/WingRtcService.git && echo;)
  44. if not exist WingASRService (git clone http://git.ius.plus/Project-Wing/WingASRService.git && echo;)
  45. if not exist WingEducationService (git clone http://git.ius.plus/Project-Wing/WingEducationService.git && echo;)
  46. if not exist WingEducationService (git clone http://git.ius.plus/Project-Wing/WingEducationService.git && echo;)
  47. if not exist WingPaymentService (git clone http://git.ius.plus/warr.qian/WingPaymentService.git && echo;)
  48. if not exist WingLabService (git clone http://git.ius.plus/fly.wang/WingLabService.git && echo;)
  49. echo Finished!
  50. pause>nul
  51. exit