libgit2

git_push_finish

Version:

Actually push all given refspecs

Note: To check if the push was successful (i.e. all remote references have been updated as requested), you need to call both git_push_unpack_ok and git_push_status_foreach. The remote repository might have refused to update some or all of the references.

Signature

int git_push_finish(git_push *push);

Parameters

In
push

The push object

Returns

int

0 or an error code

Versions