Running .sh scripts in Git bash
Let's say you have a script script.sh
. To run it (using Git Bash), you do the following
chmod +x script.sh
./script.sh
You can change the chmod
to the executable permissions that you want. Those can be found here.
Note: The chmod
only has to be run once. Run ./script.sh
when you want to run the script.