you do not need to specify * at the beginning. The following example will ignore any bin or bin directory in any part of the directory tree.
[Bb]in/
The previous example is for visual studio as it creates a bin folder in lower or upper case. You can see the .gitignore example that I used in the windows here .
, git Windows, , .git/config,
[core]
{...}
ignorecase = true
{...}