libgit2

git_remote_new

Version:

Create a new unnamed remote

Useful when you don't want to store the remote

Signature

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

Parameters

In
out

pointer to the new remote object

In
repo

the associtated repository

const char *
In
url

the remote repository's URL

Returns

int

GIT_SUCCESS or an error code

Versions