check for excluded directories before running git

- added some psuedocode on how directories should be searched