libgit2

git_remote_set_pushurl

Version:

Set the remote's url for pushing

Existing connections will not be updated.

Signature

int git_remote_set_pushurl(git_remote *remote, const char *url);

Parameters

In
remote

the remote

const char *
In
url

the url to set or NULL to clear the pushurl

Returns

int

0 or an error value

Versions