Files
faveo/vendor/gitonomy/gitlib/doc/branch.md
RafficMohammed da241bacb6 updated-packages
2023-01-08 00:13:22 +05:30

17 lines
319 B
Markdown

Branch
======
To access a *Branch*, starting from a repository object:
```php
$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:
```php
$branch->isLocal();
$branch->isRemote();
```