    

 ## On this page

  

 

 # renameBranch

 Last update: 30.07.2026 

public [renameBranch](rename-branch.md)(index: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), name: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html))

renames the branch to the given name

#### Parameters

indexof the branchnamenew name for the branch#### Throws

[ModelCenterException](./../-model-center-exception/index.md)