Gitamin\Services\Git\Repository::getHead PHP Method

getHead() public method

Get the current branch, returning a default value when HEAD is detached.
public getHead ( $default = null )
    public function getHead($default = null)
    {
        $client = $this->getClient();
        return parent::getHead($client->getDefaultBranch());
    }