For example following command adds user execute permission to an arbitrary file: git update-index --chmod=+x <file> git ls-files --stage git commit -m "Set exec"