I\'ve read through a few questions regarding file permissions in Git and I\'m still a bit confused. I\'ve got a repo on GitHub forked from another. Post merge, they should b
First check file permissions using below command.
git ls-files --stage
Then change permissions. Here "x" represents execute permissions.
git update-index --chmod=+x 'scriptname.ext'
Now re-verify the permissions.
git ls-files --stage
==============================================
if you are using Windows PC, but deploying on linux machine. Execute the below command in the first place to make it compatible to run on linux machine
dos2unix scriptname.ext scriptname.ext