title: .gitignore with wildcards for filenames
body: <p>My .gitignore file has the following entries. I am trying multiple things here as I can't seem to get my file ignored;</p>
  
  <pre><code>WinAppSetup/*.exe
  /WinAppSetup/*.exe
  WinAppSetup/setup.exe
  **/WinAppSetup/setup.exe
  </code></pre>
  
  <p>When I run <code>git status</code> from git bash, I still see;</p>
  
  <pre><code>    modified:   WinAppSetup/setup.exe
  </code></pre>
  
  <p>What entry in my .gitignore will allow me to ignore this file? </p>
  
  <p>After editing .gitignore, do I need to close and re-open git bash to have the .gitignore file re-read?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>As per user2407038's comment, the issue was that the file already existed in the repository. I was able to remove the file locally, stage and then commit those changes and update my remote. A new build of the application then successfully ignored the file.</p>
  
  <p>It seems I can also update my .gitignore file without having to close and re-open git bash too. </p>