Question : git chmod
Answered by : frightened-flamingo-5h7v1gyqtsrg
# To set the flag, use following command:
git update-index --chmod=+x path/to/file
# example
git update-index --chmod=+x ./.gitlab/ci/scripts/*.sh
# doc : https://git-scm.com/docs/git-update-index#Documentation/git-update-index.txt---chmod-x
Source : https://stackoverflow.com/questions/40978921/how-to-add-chmod-permissions-to-file-in-git | Last Update : Mon, 17 Oct 22