libgit2

git_remote_create_with_opts

Version:

Create a remote, with options.

This function allows more fine-grained control over the remote creation.

Passing NULL as the opts argument will result in a detached remote.

Signature

int git_remote_create_with_opts(git_remote **out, const char *url, const git_remote_create_options *opts);

Parameters

In
out

the resulting remote

const char *
In
url

the remote's url

In
opts

the remote creation options

Returns

int

0, GIT_EINVALIDSPEC, GIT_EEXISTS or an error code

Versions