Run bash script without chmod

Solution 1:

I you chmod +x the file locally, git will see that as a change to the file, and you can push that change so that anybody else who clones the repo has the executable permissions:

chmod +x script.sh
git add script.sh
git commit -m'make script.sh executable'
git push # if you are on a tracking branch

then is will be executable for everybody

I think that is how the repositories that you downloaded accomplished that.