how to upload a file to github with 777 permissions from UI

C++
# git update-index --chmod=+x script.sh

Source

Also in C++: