private function createGitTag($tag)
{
try {
$this->git->createTag($tag);
} catch (\exception $exception) {
$this->writeError($exception->getMessage());
$this->git->resetHardTo('HEAD~1');
return false;
}
return true;
}