How to rename a current branch? (Git)!

It’s simple. Ensure that you are on the current branch. Then simply:

    git branch -m <newname> # and this changes the branch name! Easy, wasn't it?
Written on March 14, 2017