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, const git_signature *signature, const char *reflog_message);

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

the options

In
signature

signature to use for the reflog of updated references

const char *
In
reflog_message

message to use for the reflog of upated references

Returns

int

Versions