1

I am using GitHub for Windows to commit files. My .gitignore looks like:

bin/*
!bin/IncludeThis.dll

I want to only include this binary, and not any others in any bin directories. However, this pattern is including all files in the App/bin/ directory (including the one I want).

If I change it to:

bin/
!bin/IncludeThis.dll

Then the whole App/bin/ directory is excluded (as expected). Any suggestions? Is this a bug in Github for Windows?

James
  • 7,343
  • 9
  • 46
  • 82

1 Answers1

2

If you are using, in addition of G4W (GitHub for Windows), a recent version of msysgit, don't forget you can see why a file is ignored!

git check-ignore -v -- /path/to/bin/IncludeThis.dll

Try, with msysgit 1.8.4, a .gitignore directly in the right bin folder to start debugging this (remove the other .gitignore files).

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250