Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 934
piotrek Avatar asked Feb 07 '23 01:02

piotrek


1 Answers

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

like image 73
A0__oN Avatar answered Feb 11 '23 19:02

A0__oN