1
*.dll

!/ThirdPartyLibraries/*.dll
!/ThirdPartyLibraries/*/*.dll
!/ThirdPartyLibraries/*/lib/*.dll
!/ThirdPartyLibraries/*/lib/*/*.dll

I am trying to include dlls only from that folder but it won't let me

I searched and I searched all I found was directory ignores then directory exceptions which doesn't apply here

if this has been asked before, please forgive my search skills

Shereef Marzouk
  • 3,282
  • 7
  • 41
  • 64
  • FYI I already fixed it by removing the ignore of `*.dll` and since i had bin folders ignored there was a few files I need to ignore – Shereef Marzouk Jan 24 '18 at 16:41
  • have a look in the accepted answer [here](https://stackoverflow.com/questions/10712555/gitignore-all-files-of-extension-in-directory) – Nico Albers Jan 24 '18 at 16:42
  • Possible duplicate of [gitignore all files of extension in directory](https://stackoverflow.com/questions/10712555/gitignore-all-files-of-extension-in-directory) – Nico Albers Jan 24 '18 at 16:43
  • are there other folders in `ThirdpartyLibraries/*/` in which you would want the dlls to be included? – Nico Albers Jan 24 '18 at 16:44
  • @NicoAlbers Yes inside there are several folders, 1 for each 3rd part lib we have in our roject – Shereef Marzouk Jan 25 '18 at 02:59
  • I read the answer you referenced and all answers on that question and i had already tried double * previously before posting my answer – Shereef Marzouk Jan 25 '18 at 03:16
  • Hmmm... Please edit your question and point more detailed out, why it is not enough to do `ThirdPartyLibraries/**/*.dll`? – Nico Albers Jan 25 '18 at 08:15
  • 1
    @NicoAlbers You were right that worked, what I tried was `!/ThirdPartyLibraries/**/*.dll` but when I tried `!ThirdPartyLibraries/**/*.dll` it worked, can you put that as an answer so I can select it as the correct one ? – Shereef Marzouk Jan 25 '18 at 12:01
  • Yeah, sure I'll do! What is the difference in the codes you wrote there? I can't see right now what the wrong one should be – Nico Albers Jan 25 '18 at 12:05
  • the `/` in the beginning after `!` – Shereef Marzouk Jan 25 '18 at 12:09

1 Answers1

1

Like we discussed in the comments, you can just type ThirdPartyLibraries/**/*.dll as suggested in this thread.

Happy that it worked!

Nico Albers
  • 1,556
  • 1
  • 15
  • 32