I\'m trying to create a .gitignore for a Visual Studio project that uses NuGet. It currently contains:
\\packages/*
!packages/repositories.config
I found this simple pattern works.
/packages/*/
It should ignore all directories in the root packages directory, but include all files there. Not sure what other files than repositories.config might appear in there or whether they should be included in the repository.
See also .gitignore Syntax: bin vs bin/ vs. bin/* vs. bin/**