rename
기존 로컬 브랜치의 이름을 변경해요.
시그니처
ts
class Branch {
rename(newBranchName: string, options?: BranchRenameOptions | null | undefined): Branch;
}
파라미터
- newBranchName필수 · string
변경할 브랜치 이름이에요.
- optionsnull | BranchRenameOptions
이름 변경 옵션이에요.
- forceboolean
force
옵션이 활성화되지 않았고, 주어진 이름으로 브랜치가 이미 존재하면 이름 변경이 실패해요.
- forceboolean
반환 값
- Branch
이름이 변경된 브랜치에요.