github add permissions to file 777 code example Example: how to upload a file to github with 777 permissions from UI # git update-index --chmod=+x script.sh