code: public function init(string $directory, array $options = []): GitWorkingCopy
      {
          $git = $this->workingCopy($directory);
          $git->init($options);
          $git->setCloned(true);
  
          return $git;
      }
docs: Executes a `git init` command.
  
  Create an empty git repository or reinitialize an existing one.
  
  @param mixed[] $options An associative array of command line options.