libgit2

git_remote_upload

Version:

Create a packfile and send it to the server

Connect to the remote if it hasn't been done yet, negotiate with the remote git which objects are missing, create a packfile with the missing objects and send it.

Signature

int git_remote_upload(git_remote *remote, const git_strarray *refspecs, const git_push_options *opts);

Parameters

In
remote

the remote

In
refspecs

the refspecs to use for this negotiation and upload. Use NULL or an empty array to use the base refspecs

Returns

int

0 or an error code

Versions