piotrek
piotrek

Reputation: 14530

Renaming current branch in intellij

In intellij I can rename git branches but there is no 'rename' when i click on the current branch. does intellij support it or again - console?

Upvotes: 4

Views: 20701

Answers (1)

A0__oN
A0__oN

Reputation: 9100

First you can't rename the branch name if you are on it (As of IntelliJ IDEA 2016.1.2) . So to change the Branch name on IntelliJ IDEA you need to switch to other branch.

1. View list of branches

enter image description here

I'm on master and I'm trying to rename branch test (I'm not on the branch that I want to rename)

2.Select Branch you want to rename

enter image description here

If you select the branch you can see a number of options, one of which is Rename

3. Select Rename

enter image description here

4. Click ok and Branch will be Renamed

enter image description here

5. Recheck if branch name is changed

enter image description here

Upvotes: 11

Related Questions