libgit2

git_remote_set_url

Version:

Set the remote's url in the configuration

Remote objects already in memory will not be affected. This assumes the common case of a single-url remote and will otherwise return an error.

Signature

int git_remote_set_url(git_repository *repo, const char *remote, const char *url);

Parameters

In
repo

the repository in which to perform the change

const char *
In
remote

the remote's name

const char *
In
url

the url to set

Returns

int

0 or an error value

Versions