Depth and reset

I've added two features for this plugin: support for shallow clones, option to reset the repo before syncing.