- Check the permission of script file
git ls-files --stage
100644 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 test.sh
2. If the permission bits are 644 then enable execute permission from cli
git update-index --chmod=+x test.sh
git ls-files --stage
100755 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 test.sh
#Commiy it
git commit -m "Adding Executable"
#Push the changes
git push origin test_branch
3. If shell file is not yet added to staging env
git add --chmod=+x test.sh
git commit -m "Adding Executable"
#Push the changes
git push origin test_branch