I'm trying to setup a .gitignore file with the following rule
*/bin
but it is not ignoring all bin
folders unless I use a backslash
*\bin
Shouldn't it work the same across all platforms?
you don't need to specify the * 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 the bin folder in lower or upper case. You can see an example of a .gitignore that I've used in windows here.
I forgot to add that if you're going to use git on windows, you might want to set to ignore case in the configuration file in .git/config by adding
[core]
{...}
ignorecase = true
{...}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With