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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.
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