Clone a remote repository.
This version handles the simple case. If you'd like to create the
repository or remote with non-default settings, you can create and
configure them and then use git_clone_into()
.
the remote repository to clone
local directory to clone to
configuration options for the clone. If NULL, the function works as though GIT_OPTIONS_INIT were passed.
0 on success, any non-zero return value from a callback function, or a negative value to indicate an error (use giterr_last
for a detailed error message)