title: Git add a folder with spaces in the name
body: <h1>Problem</h1>
  
  <p>When I want to add something to the staging area I normally type git add &lt; folder-name >. However, I can't add folders with spaces in the name. My <code>git add</code> auto complete doesn't correctly escape the spaces.</p>
  
  <h2>For example</h2>
  
  <p>I have a folder named: <em>Folder A</em> </p>
  
  <p>I run the command <code>git add F &lt; tab-autocomplete &gt;</code> which becomes <code>git add Folder A/</code>. 
  If I try and add this folder it will throw an error:</p>
  
  <p><code>fatal: pathspec 'Folder' did not match any files</code></p>
  
  <p>This is because the correct syntax should be <code>git add Folder\ A/</code>.</p>
  
  <h2>Summary</h2>
  
  <p>I'm not sure how to fix this though and I can't find any resources with a permanent fix. This issue "<a href="https://stackoverflow.com/questions/14053304/how-git-deals-with-folder-names-with-spaces">How git deals with folder names with spaces</a>" describes a fix. But it involves putting speech marks around the folder name which I don't really want to do. Is there a better solution?</p>
  
  <p>I'm using git version 2.2.0 and zsh version 5.0.7. Thank you in advance!</p>