Clone will take a remote repository - located on a remote server accessible by HTTPS or SSH, or a repository located elsewhere on the local disk - and place a copy in the given local path.
Clone options structure
Current version for the git_clone_options
structure
Static constructor for git_clone_options
Options for bypassing the git-aware transport on clone it means that instead of a fetch, libgit2 will copy the object database directory instead of figuring out what it needs, which is faster. If possible, it will hardlink the files to save space.
The signature of a function matching git_remote_create, with an additional void* as a callback payload
The signature of a function matching git_repository_init, with an additional void * as callback payload
Initialize git_clone_options structure
Clone a remote repository