Update the tips to the new state.
If callbacks are not specified then the callbacks specified to
git_remote_connect
will be used (if it was called).
whether to write to FETCH_HEAD. Pass 1 to behave like git.
what the behaviour for downloading tags is for this fetch. This is ignored for push. This must be the same value passed to git_remote_download()
.
The message to insert into the reflogs. If NULL and fetching, the default is "fetch <name>", where <name> is the name of the remote (or its url, for in-memory remotes). This parameter is ignored when pushing.
0 or an error code