Stages the file and marks it executable in one step, avoiding a second commit just for the file mode. The opposite form --chmod=-x clears the executable bit. Handy for scripts added on Windows, where the bit is often wrong.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.