private function pushTagToRemote($tag)
{
try {
$this->git->pushTag($tag, $this->remote);
} catch (\exception $exception) {
$this->writeError($exception->getMessage());
$this->git->deleteLocalTag($tag)->resetHardTo('HEAD~2')->forcePush($this->remote);
return false;
}
return true;
}