public function publishChanges($remote = null) { $remote = $remote === null ? 'origin' : $remote; $this->executeGitCommand("push {$remote} " . $this->getCurrentBranch()); }