On this page:
git_  clone
git_  clone_  init_  options
8.12

8 Clone🔗ℹ

 (require libgit2/include/clone) package: libgit2

procedure

(git_clone url local_path options)  repository?

  url : string?
  local_path : string?
  options : (or/c git_clone_options? #f)
Clone a remote repository.

By default this creates its repository and initial remote to match git’s defaults. You can use the options in the callback to customize how these are created.

Passing #f for options will use default clone options.

procedure

(git_clone_init_options opts int)  integer?

  opts : clone_options?
  int : unsigned
Initializes a git_clone_options with default values. Equivalent to creating an instance with GIT_CLONE_OPTIONS_INIT.