Monday 10 December 2018

Git - configuring files with execute permissions

To configure files so that they are executable when cloned/checked out from git, (saving you to chmod after a checkout):

git add
git update-index --chmod=+x
git commit 

There may also be a method you can use via a .gitattributes file?!