libgit2

git_remote_url

Version:

Get the remote's url

If url.*.insteadOf has been configured for this URL, it will return the modified URL. This function does not consider if a push url has been configured for this remote (use git_remote_pushurl if needed).

Signature

const char *git_remote_url(const git_remote *remote);

Parameters

In
remote

the remote

Returns

const char *

a pointer to the url

Versions