public Ref renameBranch ( Ref branchFrom , String nameTo , boolean forceRename ) throws IOException , JavaGitException { Ref newBranch = Ref . createBranchRef ( nameTo ) ; GitBranch gitBranch = new GitBranch ( ) ; gitBranch . renameBranch ( path , forceRename , branchFrom , newBranch ) ; return newBranch ; }
Renames a branch