title: How to create file execute mode permissions in Git on Windows?
body: <p>I use Git in Windows, and want to push the executable shell script into git repo by one commit.</p>
  <p>Usually I need to do two steps (<code>git commit</code>).</p>
  <pre><code>$ vi install.sh
  $ git add install.sh  
  $ git commit -am &quot;add new file for installation&quot; # first commit
  [master f2e92da] add support for install.sh
   1 files changed, 18 insertions(+), 3 deletions(-)
   create mode 100644 install.sh
  $ git update-index --chmod=+x install.sh
  $ git commit -am &quot;update file permission&quot;        # second commit
  [master 317ba0c] update file permission
    0 files changed
    mode change 100644 =&gt; 100755 install.sh
  </code></pre>
  <p>How can I combine these two steps into one step? git configuration? windows command?</p>
  <p>Reference: see question in <a href="https://stackoverflow.com/questions/6476513">Git file permissions on Windows</a> for second commit</p>