title: VSTS Minimatch pattern to exclude .git folder
body: <p>I'm using VSTS and the build task <strong>FTP Upload</strong>. When the files and folders are uploaded to my FTP server the <strong>.git</strong> folder is always copied to the server too.
  I tried to exclude the <strong>.git</strong> folder with file pattern like following:</p>
  
  <pre><code>**
  !(**/.git/**)
  </code></pre>
  
  <p>I don't know why it does not work but is there any way to tell the task with minimatch pattern to exclude folder explicitly?</p>