Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 319 Bytes

branch.md

File metadata and controls

16 lines (12 loc) · 319 Bytes

Branch

To access a Branch, starting from a repository object:

$repository = new Gitonomy\Git\Repository('/path/to/repository');
$branch = $repository->getReferences()->getBranch('master');

You can check is the branch is a local or remote one:

$branch->isLocal();
$branch->isRemote();