• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

Run Bash Script in GitBash

February 8, 2019

Unfortunately, you can’t run Bash scripts in GitBash the normal way. Here’s the workaround. You have to use sh script.sh

# Normal use
./script.sh
# Running it in GitBash
sh script.sh

# Normal use ./script.sh # Running it in GitBash sh script.sh

Filed Under: Linux Tagged With: gitbash, run, sh

Search This Website

Subscribe Via Email

  • Home
  • About
  • Archives

Copyright © 2023