-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reference: fix #36 add Git2\Reference::create method
now, you can create a branch like this. ```` $repo = new Git2\Repository(".git"); $branch_name = "refs/heads/feature/create_branch"; $oid_or_symbolic_ref = "b4fd0a854ae8a6a02c89ab08e3e2f41bd4832ff1"; $force = false; $ref = Git2\Reference::create($repo, $branch_name, $oid_or_symbolic_ref, $force); ```` this API throws \RuntimeException when failed.
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters