Tweaks and cleanup on git plugin.