git_remote_push

Perform a push.

If options are specified and this remote is already connected then the existing remote connection options will be discarded and the remote will now use the new options.

extern (C) nothrow @nogc public
int
git_remote_push

Parameters

remote libgit2.types.git_remote*

the remote to push to

refspecs const(libgit2.strarray.git_strarray)*

the refspecs to use for pushing. If null or an empty array, the configured refspecs will be used

opts const(.git_push_options)*

options to use for this push

Return Value

Type: int

0 or an error code.

Meta