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.

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