You can turn the .git/info/exclude on its head to only include certain files / directories. Start by excluding everything, then negating the succeeding rules.
* !foo.* !bar
You can turn the .git/info/exclude on its head to only include certain files / directories. Start by excluding everything, then negating the succeeding rules.
* !foo.* !bar