title: How to ignore one file when having multiple files with same names
body: <p>My folder tree looks as follows:</p>
  
  <ul>
  <li>main_folder/
  
  <ul>
  <li>.gitignore</li>
  <li>file1.py</li>
  <li>secondary_folder/
  
  <ul>
  <li>file1.py</li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>I'm trying to ignore only the file1.py that <strong>outside</strong> the secondary_folder.<br>
  Already tried both <code>./file1.py</code> and <code>main_folder/file1.py</code> and <code>!secondary_folder/file1.py</code> but in all cases it includes both files.</p>