The first step is to checkout to branch which we want to rename and then:
1 2 |
/> git branch -m old_branch_name new_branch_name /> git push origin new_branch_name |
To delete the old branch type this in terminal:
1 |
/> git push origin :old_branch_name |