Move git support into plugin. Improve exclusions.