Running .sh scripts in Git Bash

后端 未结 8 2115
无人共我
无人共我 2021-01-31 01:29

I\'m on a Windows machine using Git 2.7.2.windows.1 with MinGW 64.

I have a script in C:/path/to/scripts/myScript.sh.

How do I execute this script f

8条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-31 02:08

    I was having two .sh scripts to start and stop the digital ocean servers that I wanted to run from the Windows 10. What I did is:

    • downloaded "Git for Windows" (from https://git-scm.com/download/win).
    • installed Git
    • to execute the .sh script just double-clicked the script file it started the execution of the script.

    Now to run the script each time I just double-click the script

提交回复
热议问题