Skip to main content

push

Function push 

Source
pub fn push(
    store: &Store<'_>,
    git: &GitCli<'_>,
    remote: &RemoteConfig,
    progress: &mut dyn FnMut(&str),
) -> Result<GitPush, CoreError>
Expand description

git push of main and every tag. A non-fast-forward rejection pulls (merges) and retries once (SPEC 9.8); a pull with conflicts stops there with merge_conflict, and a pull that failed with its own error. Other rejections (a protected branch, a hook) are remote_rejected at once.