libgit2

git_remote_pushurl

Version:

Get the remote's url for pushing.

If url.*.pushInsteadOf has been configured for this URL, it will return the modified URL. If git_remote_set_instance_pushurl has been called for this remote, then that URL will be returned.

Signature

const char *git_remote_pushurl(const git_remote *remote);

Parameters

In
remote

the remote

Returns

const char *

a pointer to the url or NULL if no special url for pushing is set

Versions