libgit2

git_remote_create_anonymous

Version:

Create an anonymous remote

Create a remote with the given url in-memory. You can use this when you have a URL instead of a remote's name.

Signature

int git_remote_create_anonymous(git_remote **out, git_repository *repo, const char *url);

Parameters

In
out

pointer to the new remote objects

In
repo

the associated repository

const char *
In
url

the remote repository's URL

Returns

int

0 or an error code

Versions