Gitlab\Api\Repositories::createBranch PHP Method

createBranch() public method

public createBranch ( integer $project_id, string $branch_name, string $ref ) : mixed
$project_id integer
$branch_name string
$ref string
return mixed
    public function createBranch($project_id, $branch_name, $ref)
    {
        return $this->post($this->getProjectPath($project_id, 'repository/branches'), array('branch_name' => $branch_name, 'ref' => $ref));
    }