parse_remote_name
Parse remote name from ref, like:
remotes/origin/branch_name
strip_remote_prefix
Strip remotes prefix from branch ref string
remotes/origin/branch_name
To
origin/branch_name
prefix
Get branch prefix name, for remote branch, return remotes/{prefix}
For local branch, return {prefix}
create
create branch
local_rename
Rename branch locally.
update_ref
update_ref by branch name
SYNOPSIS
my $branch = $manager->branch->current;
my $develop = $manager->branch->new_branch( 'develop' )->create( from => 'master' );
$develop->delete;
$develop->push;
$develop->push('origin');
$develop->push('github');
$develop->push_to_remotes;