libgit2

git_remote_push

Version:

Perform a push

Peform all the steps from a push.

Signature

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

Parameters

In
remote

the remote to push to

In
refspecs

the refspecs to use for pushing. If none are passed, the configured refspecs will be used

In
opts

options to use for this push

Returns

int

Versions