title: Git unknown switch 'C'
body: <p>I have a weird case - My git was working fine till an hour ago or so but now when I try to run</p>
  
  <pre><code>git add * --all
  </code></pre>
  
  <p>I get an error saying <strong>error: unknown switch `C'</strong>.</p>
  
  <p>Below is the output I got. I just pulled from the repo which had some changes and after that I started getting this error. Tried poking around a bit and found that the error comes because of the <code>*</code> sign. If I remove that, it works....</p>
  
  <pre><code>$ git add * --all
  error: unknown switch `C'
  
  usage: git add [options] [--] &lt;pathspec&gt;...
  
  -n, --dry-run         dry run
  -v, --verbose         be verbose
  
  -i, --interactive     interactive picking
  -p, --patch           select hunks interactively
  -e, --edit            edit current diff and apply
  -f, --force           allow adding otherwise ignored files
  -u, --update          update tracked files
  -N, --intent-to-add   record only the fact that the path will be added later
  
  -A, --all             add changes from all tracked and untracked files
  --ignore-removal      ignore paths removed in the working tree (same as --no-all)
  --refresh             don't add, only refresh the index
  --ignore-errors       just skip files which cannot be added because of errors
  --ignore-missing      check if - even missing - files are ignored in dry run
  </code></pre>