Parse remote name from ref, like:
remotes/origin/branch_name
Strip remotes prefix from branch ref string
To
origin/branch_name
Get branch prefix name, for remote branch, return remotes/{prefix}
For local branch, return {prefix}
create branch
Rename branch locally.
update_ref by branch name
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;
To install Git::Release, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Git::Release
CPAN shell
perl -MCPAN -e shell install Git::Release
For more information on module installation, please visit the detailed CPAN module installation guide.