Moved resetWorkspace logic into init and implemented some git helpers