public static function create($dir, $debug = false, array $options = array())
    {
        $options = array_merge(self::$defaultOptions, $options);
        $commandString = $options['git_executable'].' init';
        $command = new $options['command_class']($dir, $commandString, $debug);
        $command->run();

        $repo = new self($dir, $debug, $options);

        return $repo;
    }