Gitonomy\Git\Repository::cloneTo PHP Method

cloneTo() public method

Clones the current repository to a new directory and return instance of new repository.
public cloneTo ( string $path, boolean $bare = true, array $options = [] ) : Repository
$path string path to the new repository in which current repository will be cloned
$bare boolean flag indicating if repository is bare or has a working-copy
$options array
return Repository the newly created repository
    public function cloneTo($path, $bare = true, array $options = array())
    {
        return Admin::cloneTo($path, $this->gitDir, $bare, $options);
    }