libgit2

git_remote_set_pushurl

Version:

Set the remote's url for pushing 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_pushurl(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 code

Versions