add chmod Source git update-index --add --chmod=+x /path/to/file the --add causes the file to be staged if necessary