public function pushToRemote($remote, $ref, $setUpstream = false, $force = false)
{
$command = ['git', 'push'];
if ($setUpstream) {
$command[] = '--set-upstream';
}
if ($force) {
$command[] = '--force';
}
$command[] = $remote;
$command[] = $ref;
$this->processHelper->runCommand($command);
}