To stage a file and name it executable at the same time you can use the following git command:
git add --chmod=+x <FILENAME>
To stage a file and name it executable at the same time you can use the following git command:
git add --chmod=+x <FILENAME>