# matching is done on the whole path string, so # this will ignore everything regardless of depth * # whatever exceptions are made, will only work in # the current folder, unless recursion is allowed with !*/ # this will whitelist at the top level !*.ps1 # this will whitelist everywhere !**/*.xml # lines are processed in order, so it's possible # to undo everything above with !*