Git Helpers

by John

 

 

Add Execute Permissions to all bash scripts

When we have lots of bash files and are pushing to server, often the permissions will get lost if care is not taken, and this results in the bash scripts not executing in production. Run command below to ensure all scripts have execute permissions, the command below is the one time command.

git ls-files --error-unmatch '*.sh' | xargs git update-index --chmod=+x