Why doesn't git respect my windows .gitignore file?

I am trying to configure a .gitignore file with the following rule

*/bin

but it does not ignore all folders binunless I use backslash

*\bin

Shouldn't work the same on all platforms?

+5
source share
1 answer

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
{...}
+6

All Articles