Running .sh scripts in Git Bash

后端 未结 8 2112
无人共我
无人共我 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:12

    Once you're in the directory, just run it as ./myScript.sh

    0 讨论(0)
  • 2021-01-31 02:16

    If you wish to execute a script file from the git bash prompt on Windows, just precede the script file with sh

    sh my_awesome_script.sh
    
    0 讨论(0)
提交回复
热议问题