Skip to main content

Saving chmod +x in a Git Repo

export fileType=.sh
git config core.fileMode true
find . -type f -iname "*$fileType" -exec chmod +x {} \;
find . -type f -iname "*$fileType" -exec git update-index --chmod=+x {} \;
git add . && git commit -am "Update Execute Permissions" && git push