libgit2

git_remote_connect

Version:

Open a connection to a remote

The transport is selected based on the URL

Signature

int git_remote_connect(struct git_remote *remote, int direction);

Parameters

struct git_remote *
In
remote

the remote to connect to

int
In
direction

Returns

int

GIT_SUCCESS or an error code

Versions