title: .gitignore Syntax: bin vs bin/ vs. bin/* vs. bin/**
body: <p>What's the difference between adding <code>bin</code>, <code>bin/</code>, <code>bin/*</code> and <code>bin/**</code> in my .gitignore file? I've been using <code>bin/</code>, but looking at <a href="https://github.com/github/gitignore/blob/master/Android.gitignore" rel="noreferrer">other</a> <a href="https://github.com/github/gitignore" rel="noreferrer">.gitignore files</a> (in the <a href="https://github.com/github/gitignore/blob/master/Global/Eclipse.gitignore" rel="noreferrer">eclipse file</a> the double and single star are even used together like this: <code>tmp/**/*</code> what's up with that?) I see that the first two patterns are also widely used as well. Can someone please explain the differences between the three?</p>