title: How should I use .gitignore?
body: <p>I'm new to Github and Git as whole. I'm working on a repository that has a lot of <code>.tex</code> files and mostly Matlab code. The IDE for Latex I use is Texpad and it creates a folder called <code>.texpadtmp</code> for auxiliary files. It looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/Zf9n2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Zf9n2.png" alt="enter image description here"></a></p>
  
  <p>If I got it right, <code>.gitignore</code> is all about creating a set of types of files and folders which will be explicitly ignored by Git when committing and tracking. I took to some other repos and how they created their .gitignore file and I created something that looks like this (whit the help of a GitHub template):</p>
  
  <p><a href="https://i.stack.imgur.com/rhtHN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rhtHN.png" alt="enter image description here"></a></p>
  
  <p>However, although I have updated my local repo and everything is in sync, the aforementioned folder is still there and all the auxiliary files are still there, still visible. Is this the expected behavior? Shouldn't it be omitted somehow and never be committed upon or tracked again? Thanks in advance.</p>